:root {
  --color-paper: #f4efe6;
  --color-paper-2: #ebe3d4;
  --color-ink: #241c18;
  --color-ink-soft: #4a4038;
  --color-muted: #7a6e64;
  --color-faint: #a19688;
  --color-line: rgb(36 28 24 / 0.12);
  --color-ember: #8c1b25;
  --color-ember-fg: #f7efe6;
  --color-klima: #31479f;
  --color-night: #2c221c;
  --color-night-fg: #f4efe6;
  --color-night-muted: #c4b8ac;
  --color-taupe: #a19688;
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Raleway", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 72rem;
  --shadow-lift: 0 22px 50px rgb(36 28 24 / 0.12);
}

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

.theme-klima {
  --color-ember: #31479f;
  --color-ember-fg: #f7efe6;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; outline: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .hb-display, .hb-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
  line-height: 1.12;
}
::selection { background: var(--color-ember); color: var(--color-ember-fg); }

.hb-wrap {
  width: min(100% - 2.5rem, var(--wrap));
  max-width: var(--wrap);
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}
@media (min-width: 640px) {
  .hb-wrap { width: min(100% - 4rem, var(--wrap)); }
}

.hb-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ember);
}
.hb-muted { color: var(--color-muted); }
.hb-more {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ember);
}

.hb-btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-ember);
  color: var(--color-ember-fg) !important;
  font: 500 0.95rem/1 var(--font-sans);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 150ms var(--ease), background-color 150ms;
}
.hb-btn:hover, .wp-block-button__link:hover { background: color-mix(in srgb, var(--color-ember) 90%, black); transform: scale(0.98); }
.hb-btn--paper { background: var(--color-paper); color: var(--color-ink) !important; }
.hb-btn--night { background: var(--color-ink); color: var(--color-paper) !important; }
.hb-btn--outline {
  background: transparent;
  color: var(--color-ink) !important;
  box-shadow: inset 0 0 0 1px var(--color-line);
}

/* Header */
.hb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-paper) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-line) 70%, transparent);
}
html.admin-bar .hb-header { top: 32px; }
@media (max-width: 782px) { html.admin-bar .hb-header { top: 46px; } }
.hb-header__accent { height: 3px; background: var(--color-ember); }
.hb-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.hb-header .custom-logo-link img, .hb-header .custom-logo { height: 42px; width: auto; }
.hb-nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}
@media (min-width: 1024px) { .hb-nav { display: flex; } }
.hb-nav a:hover { color: var(--color-ink); }
.hb-header__cta { display: none; }
@media (min-width: 1024px) { .hb-header__cta { display: inline-flex; } }
.hb-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 0;
  font: 500 0.7rem/1 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (min-width: 1024px) { .hb-menu-btn { display: none; } }
.hb-hours { display: none; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--color-muted); }
@media (min-width: 768px) { .hb-hours { display: inline-flex; } }
.hb-hours__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-faint);
}
.hb-hours__dot.is-open { background: var(--color-ember); animation: pulse-dot 1.8s ease-in-out infinite; }

.hb-drawer-overlay {
  position: fixed; inset: 0; z-index: 49;
  background: rgb(44 34 28 / 0.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 280ms var(--ease), visibility 280ms;
}
.hb-drawer-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.hb-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(100%, 32rem);
  background: var(--color-paper);
  transform: translateX(100%);
  transition: transform 350ms var(--ease), visibility 350ms;
  padding: 1.75rem 2rem 2rem;
  display: flex; flex-direction: column;
  visibility: hidden;
}
.hb-drawer.is-open { transform: none; visibility: visible; }
.hb-drawer nav { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 1.5rem; }
.hb-drawer nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  padding: 0.28rem 0;
}
.hb-drawer nav a:hover { color: var(--color-ember); }

/* Hero — copy sits above the tab bar, like the sandbox */
.hb-hero {
  position: relative;
  isolation: isolate;
  height: 78svh;
  min-height: 36rem;
  background: var(--color-night);
  color: var(--color-night-fg);
  overflow: hidden;
}
@media (min-width: 640px) {
  .hb-hero { height: 86svh; min-height: 40rem; }
}
.hb-hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms var(--ease), visibility 700ms;
}
.hb-hero__slide.is-active,
.hb-hero:not(.is-ready) .hb-hero__slide:first-child {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hb-hero__img {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: cover; object-position: center;
}
.hb-hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(44 34 28 / 0.72), rgb(44 34 28 / 0.28) 55%, transparent),
    linear-gradient(to top, rgb(44 34 28 / 0.82), rgb(44 34 28 / 0.12) 46%, transparent);
}
.hb-hero__copy {
  position: absolute; inset: 0; z-index: 2;
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 5rem 0 9.25rem;
  color: var(--color-night-fg);
  pointer-events: none;
}
@media (min-width: 640px) {
  .hb-hero__copy { padding: 5.5rem 0 9.5rem; }
}
.hb-hero__copy .hb-btn { pointer-events: auto; }
.hb-hero__eyebrow { color: color-mix(in srgb, var(--color-ember-fg) 80%, transparent); }
.hb-hero__kicker { margin-top: 1.1rem; color: var(--color-taupe); }
.hb-hero.theme-klima .hb-hero__kicker,
.hb-hero__slide.theme-klima .hb-hero__kicker { color: #9db0ff; }
.hb-hero__slide:not(.theme-klima) .hb-hero__kicker { color: var(--color-ember-fg); }
.hb-hero__title { margin: 0.7rem 0 0; font-size: clamp(2.2rem, 6vw, 4.4rem); max-width: 18ch; color: var(--color-night-fg); }
.hb-hero__text { margin: 1.1rem 0 0; max-width: 36rem; color: var(--color-night-muted); font-size: 1.05rem; line-height: 1.5; }
.hb-hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.75rem; }
.hb-hero__nav {
  position: absolute; z-index: 4;
  left: 50%; bottom: 1.35rem; transform: translateX(-50%);
  width: min(100% - 2rem, var(--wrap));
  margin: 0;
  display: flex; gap: 0.75rem; align-items: flex-end;
}
.hb-hero__tab { flex: 1; min-width: 0; background: none; border: 0; color: var(--color-night-muted); text-align: left; cursor: pointer; padding: 0; }
.hb-hero__tab.is-on { color: var(--color-night-fg); }
.hb-hero__bar { display: block; height: 2px; background: rgb(244 239 230 / 0.2); border-radius: 99px; overflow: hidden; margin-bottom: 0.45rem; }
.hb-hero__bar > span {
  display: block; height: 100%; width: 100%;
  background: var(--color-ember-fg);
  transform: scaleX(0); transform-origin: left center;
}
.hb-hero__tab.is-on .hb-hero__bar > span { animation: fill-x 7s linear forwards; }
.hb-hero__tab.is-done .hb-hero__bar > span { transform: scaleX(1); animation: none; }
.hb-hero__tab-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 639px) { .hb-hero__tab-label { display: none; } }

.hb-stats { background: var(--color-ember); color: var(--color-ember-fg); }
.hb-stats__grid { display: grid; gap: 1.5rem; padding: 2.4rem 0; }
@media (min-width: 640px) { .hb-stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hb-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.hb-stats__value { font-family: var(--font-display); font-size: 2.2rem; margin: 0; }
.hb-stats__label { margin: 0.35rem 0 0; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }

.hb-section { padding: 4.5rem 0; }
.hb-intro { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hb-intro { grid-template-columns: 1.1fr 0.9fr; } }
.hb-intro h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 1rem 0 0; }
.hb-intro em { font-style: italic; color: var(--color-ember); }
.hb-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hb-stack { position: relative; padding-bottom: 2.8rem; }
.hb-stack__glow { position: absolute; inset: -1.1rem; background: color-mix(in srgb, var(--color-ember) 10%, transparent); border-radius: 1.5rem; z-index: 0; }
.hb-stack__main {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 1rem;
}
.hb-stack__over {
  position: absolute; z-index: 2;
  right: -1rem; bottom: -1.6rem; width: 42%;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 0.75rem; box-shadow: var(--shadow-lift);
}
@media (max-width: 639px) { .hb-stack__over { display: none; } }

.hb-accordion-head { padding: 0 0 1.5rem; }
.hb-accordion-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.4rem 0 0; }

.hb-services { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 1024px) { .hb-services { flex-direction: row; height: 34rem; } }
.hb-services__item {
  position: relative; min-height: 14rem; overflow: hidden; border-radius: 1.25rem; flex: 1;
  color: var(--color-night-fg);
  transition: flex 500ms var(--ease);
}
.hb-services__item img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none;
  object-fit: cover; transition: transform 700ms var(--ease);
}
.hb-services__item:hover img { transform: scale(1.05); }
.hb-services__shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-night), rgb(44 34 28 / 0.28) 45%, rgb(44 34 28 / 0.08)); }
.hb-services__copy { position: absolute; inset: auto 0 0; padding: 1.6rem; }
.hb-services__copy h3 { margin: 0.4rem 0 0; font-size: 1.8rem; }
.hb-services__lead {
  color: var(--color-night-muted); font-size: 0.9rem; max-width: 22rem;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
@media (min-width: 1024px) {
  .hb-services__item { flex: 1.05; min-height: 0; }
  .hb-services__item:first-child { flex: 2.4; }
  .hb-services:hover .hb-services__item:first-child:not(:hover) { flex: 1.05; }
  .hb-services__item:hover, .hb-services__item:focus-visible { flex: 2.6; }
  .hb-services__lead { opacity: 0; transform: translateY(8px); }
  .hb-services__item:first-child .hb-services__lead,
  .hb-services__item:hover .hb-services__lead,
  .hb-services__item:focus-visible .hb-services__lead { opacity: 1; transform: none; }
  .hb-services:hover .hb-services__item:first-child:not(:hover) .hb-services__lead { opacity: 0; transform: translateY(8px); }
}

.hb-values { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .hb-values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .hb-values { grid-template-columns: repeat(4, 1fr); } }
.hb-values li { border-top: 1px solid var(--color-line); padding-top: 1.4rem; list-style: none; }
.hb-values h3 { margin: 0.7rem 0 0; font-size: 1.7rem; }

.hb-cta {
  background: var(--color-ember);
  color: var(--color-ember-fg);
  padding: 4rem 0;
}
.hb-cta__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.75rem; align-items: center; }
.hb-cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.hb-cta p { margin: 0.7rem 0 0; color: color-mix(in srgb, var(--color-ember-fg) 75%, transparent); }
.hb-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hb-btn--ghost {
  background: transparent;
  color: var(--color-ember-fg) !important;
  box-shadow: inset 0 0 0 1px rgb(247 239 230 / 0.28);
  max-width: 22rem;
  height: auto;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
  padding: 0.85rem 1.25rem;
}
.hb-btn--ghost:hover { background: rgb(247 239 230 / 0.1); }

.hb-rail-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem;
  padding: 1rem 0 1.5rem;
}
.hb-rail-head h2 { margin: 0.35rem 0 0; font-size: clamp(2rem, 4vw, 3rem); }
.hb-steps { display: grid; gap: 0.75rem; list-style: none; margin: 1.8rem 0 0; padding: 0; }
@media (min-width: 640px) { .hb-steps { grid-template-columns: 1fr 1fr; } }
.hb-steps li { background: var(--color-paper-2); border-radius: 1.1rem; padding: 1.6rem 1.7rem; }
.hb-steps h3 { margin: 0.55rem 0 0; font-size: 1.55rem; }
.hb-steps .hb-muted { margin: 0.7rem 0 0; }

.hb-pagehero { position: relative; min-height: 28rem; background: var(--color-night); color: var(--color-night-fg); overflow: hidden; display: flex; align-items: flex-end; }
.hb-pagehero.is-compact { min-height: 20rem; }
.hb-pagehero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ken 16s var(--ease) both; }
.hb-pagehero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(44 34 28 / 0.88), rgb(44 34 28 / 0.35) 45%, rgb(44 34 28 / 0.2)); }
.hb-pagehero__copy { position: relative; padding: 4.5rem 0 3rem; }
.hb-pagehero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; margin: 0.6rem 0 0; }
.hb-pagehero__lead { max-width: 36rem; color: var(--color-night-muted); }

.hb-projects { display: grid; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .hb-projects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .hb-projects { grid-template-columns: repeat(3, 1fr); } }
.hb-projects__item { overflow: hidden; border-radius: 1rem; background: var(--color-paper-2); }
.hb-projects__item.is-klima .hb-kicker, .hb-projects__item.is-klima .hb-more { color: var(--color-klima); }
.hb-projects__item img { aspect-ratio: 4/3; width: 100%; object-fit: cover; background: var(--color-paper-2); transition: transform 700ms var(--ease); }
.hb-projects__item:hover img { transform: scale(1.05); }
.hb-projects__meta { padding: 1.2rem; }
.hb-projects__meta h3 { margin: 0.4rem 0 0; font-size: 1.15rem; }
.hb-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.hb-filters button {
  height: 2.75rem; padding: 0 1.2rem; border: 0; border-radius: 999px;
  background: var(--color-paper-2); color: var(--color-ink-soft); cursor: pointer; font: 400 0.9rem var(--font-sans);
}
.hb-filters button.is-on { background: var(--color-ember); color: var(--color-ember-fg); }

.hb-project-index {
  padding: 2.75rem 0 5rem;
}
.hb-project-index.is-rail-wrap {
  padding: 0 0 1rem;
}
.hb-projects__empty {
  grid-column: 1 / -1;
  padding: 2rem 0 4rem;
  list-style: none;
}

.hb-team { border-top: 1px solid var(--color-line); padding: 3rem 0; }
.hb-team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
@media (min-width: 640px) { .hb-team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .hb-team__grid { grid-template-columns: repeat(4, 1fr); } }
.hb-team__grid li { overflow: hidden; border-radius: 1rem; background: var(--color-paper-2); }
.hb-team__grid img { aspect-ratio: 1; width: 100%; object-fit: cover; object-position: center 18%; }
.hb-team__grid p { margin: 0; padding: 0.75rem; font-size: 0.9rem; font-weight: 500; }

.hb-form { display: grid; gap: 1.1rem; }
.hb-form label { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; }
.hb-form input, .hb-form textarea {
  width: 100%; box-sizing: border-box;
  border: 0; border-radius: 0.5rem;
  background: var(--color-paper-2);
  padding: 0.8rem 0.9rem;
  font: 400 1rem var(--font-sans);
  color: var(--color-ink);
}
.hb-hp { position: absolute; left: -9999px; }
.hb-form-thanks { background: var(--color-paper-2); border-radius: 1rem; padding: 2rem; }

.hb-footer { background: var(--color-night); color: var(--color-night-fg); padding: 3.5rem 0 0; }
.hb-footer__grid { display: grid; gap: 2rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .hb-footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.hb-footer a:hover { color: var(--color-ember-fg); }
.hb-footer__legal {
  border-top: 1px solid rgb(244 239 230 / 0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  padding: 1.1rem 0; font-size: 0.75rem; color: var(--color-night-muted);
}
.hb-footer .custom-logo { height: 48px; width: auto; filter: none; }

.hb-phone-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--color-ember); color: var(--color-ember-fg);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 640px) { .hb-phone-fab { display: none; } }

.hb-cards { display: grid; gap: 2rem; }
@media (min-width: 768px) { .hb-cards { grid-template-columns: 1fr 1fr 1fr; } }
.hb-cards img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 1rem; }
.hb-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .hb-split { grid-template-columns: 1fr 1fr; } }
.hb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.hb-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--color-line); }
.hb-list li:last-child { border-bottom: 0; }
.hb-industry { display: grid; overflow: hidden; border-radius: 1.5rem; background: var(--color-paper-2); }
@media (min-width: 1024px) { .hb-industry { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.hb-industry__copy { padding: 2rem 2rem 2.2rem; }
@media (min-width: 640px) { .hb-industry__copy { padding: 2.8rem; } }
.hb-industry__copy h2 { margin: 0.6rem 0 0; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.hb-industry img { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; }

.entry-content > * { margin-inline: auto; }
.entry-content .alignfull { width: 100%; max-width: none; margin-inline: 0; }
.wp-site-blocks { padding: 0 !important; max-width: none !important; }
.wp-block-post-content { margin: 0; }

@keyframes ken {
  from { transform: scale(1.12) translate3d(0, 2%, 0); }
  to { transform: scale(1) translate3d(0, -2%, 0); }
}
@keyframes fill-x { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .hb-hero__img, .hb-pagehero__img { animation: none; }
}

.is-hidden { display: none !important; }

.wp-site-blocks,
.wp-block-group.alignfull,
main.wp-block-group,
.wp-block-post-content,
.entry-content {
  overflow: visible;
  max-width: none !important;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Full-bleed only for chrome / cinematic bands — not article text */
.wp-block-heizbaer-hero-slider,
.wp-block-heizbaer-site-header,
.wp-block-heizbaer-site-footer,
.wp-block-heizbaer-stat-band,
.wp-block-heizbaer-page-hero,
.wp-block-heizbaer-project-hero,
.wp-block-heizbaer-related-projects,
.wp-block-heizbaer-project-grid,
.hb-hero, .hb-pagehero, .hb-stats, .hb-header, .hb-footer, .hb-cta,
.hb-related, .hb-project-index {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}
.wp-block-post-content > .hb-wrap,
.entry-content > .hb-wrap,
.hb-project-index .hb-wrap,
.hb-filters,
.hb-projects,
.hb-related .hb-wrap {
  width: min(100% - 2.5rem, var(--wrap)) !important;
  max-width: var(--wrap);
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (min-width: 640px) {
  .hb-project-index .hb-wrap,
  .hb-filters,
  .hb-projects,
  .hb-related .hb-wrap {
    width: min(100% - 4rem, var(--wrap)) !important;
  }
}

/* Single project / post article */
.single-post .hb-article,
.single-projekt .hb-article {
  width: min(100% - 2.5rem, 42rem);
  margin: 0 auto;
  padding: 3.25rem 0 4.5rem;
}
.single-post .wp-block-post-excerpt,
.single-projekt .wp-block-post-excerpt,
.single .wp-block-post-excerpt,
.single-post .entry-summary,
.single-post .wp-block-post-excerpt__excerpt { display: none !important; }
.single-post .hb-article .wp-block-post-content p,
.single-projekt .hb-article .wp-block-post-content p,
.single-post .hb-article p,
.single-projekt .hb-article p {
  margin: 0 0 1.35rem !important;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-ink-soft);
  white-space: pre-line;
}
.single-post .hb-article .wp-block-post-content p:last-child,
.single-projekt .hb-article .wp-block-post-content p:last-child {
  margin-bottom: 0 !important;
}
.single-post .hb-article .wp-block-buttons,
.single-projekt .hb-article .wp-block-buttons {
  margin-top: 2.5rem;
}
.hb-gallery,
.wp-block-gallery.hb-gallery {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 2.4rem 0 0;
  padding: 0;
}
.wp-block-gallery.hb-gallery .wp-block-image {
  margin: 0;
  width: 100% !important;
}
@media (min-width: 720px) {
  .hb-gallery, .wp-block-gallery.hb-gallery { grid-template-columns: repeat(3, 1fr); }
}
.hb-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 0.9rem;
  background: var(--color-paper-2);
}
.hb-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.hb-gallery a:hover img { transform: scale(1.04); }
.hb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgb(20 14 12 / 0.88);
  padding: 2rem;
}
.hb-lightbox.is-open { display: grid; }
.hb-lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 4rem);
  object-fit: contain;
  border-radius: 0.6rem;
}
.hb-lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgb(244 239 230 / 0.14);
  color: #f7efe6;
  font-size: 1.6rem;
  cursor: pointer;
}
.single-post .hb-pagehero,
.single-projekt .hb-pagehero {
  min-height: 32rem;
}
@media (min-width: 640px) {
  .single-post .hb-pagehero,
  .single-projekt .hb-pagehero { min-height: 36rem; }
}
.single-post .hb-pagehero h1,
.single-projekt .hb-pagehero h1 {
  max-width: 22ch;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}
.single-post .wp-block-post-featured-image,
.single-projekt .wp-block-post-featured-image { display: none; }
.single-post .wp-block-post-title,
.single-projekt .wp-block-post-title { display: none; }

.hb-related {
  border-top: 1px solid var(--color-line);
  padding: 3.5rem 0 4.5rem;
}
.hb-related h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 1.75rem;
  font-weight: 500;
}
.hb-related__grid {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) {
  .hb-related__grid { grid-template-columns: repeat(3, 1fr); }
}
.hb-related__grid a { display: block; }
.hb-related__grid img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--color-paper-2);
  transition: transform 500ms var(--ease);
}
.hb-related__grid a:hover img { transform: scale(1.04); }
.hb-related__grid h3 {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.hb-related__grid .hb-muted { margin: 0.35rem 0 0; font-size: 0.9rem; }
.hb-header__tools { display: flex; align-items: center; gap: 1.2rem; }
.hb-nav__link {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  transition: background-size 250ms var(--ease), color 150ms;
}
.hb-nav__link.is-current { color: var(--color-ink); background-size: 100% 1.5px; }
.hb-hero-back { color: var(--color-night-muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
.hb-hero-back:hover { color: var(--color-night-fg); }
.hb-header.is-scrolled { box-shadow: var(--shadow-lift); }
.single-post .wp-block-post-featured-image,
.single-projekt .wp-block-post-featured-image,
.single-post .wp-block-post-title,
.single-projekt .wp-block-post-title { display: none; }
.hb-menu-btn__bars { display: flex; flex-direction: column; gap: 6px; }
.hb-menu-btn__bars span { display: block; height: 1px; background: currentColor; }
.hb-menu-btn__bars span:first-child { width: 20px; }
.hb-menu-btn__bars span:last-child { width: 14px; align-self: flex-end; }
.hb-drawer__top { display: flex; align-items: center; justify-content: space-between; padding-right: 3rem; }
.hb-drawer__close {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--color-ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.hb-drawer__close:hover { background: var(--color-paper-2); }
.hb-drawer__contact {
  margin-top: auto;
  padding-top: 2.5rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}
.hb-drawer__tel { color: var(--color-ember); font-weight: 500; }
.hb-drawer__tel:hover,
.hb-drawer__mail:hover { color: var(--color-ink); }
.hb-footer__kicker { color: var(--color-taupe); }
.hb-footer__lead { margin-top: 1rem; max-width: 18rem; }
.hb-footer__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.hb-footer__addr { font-style: normal; margin: 1rem 0 0; }
.hb-footer__legal-links { display: flex; gap: 1rem; }
body.hb-lock { overflow: hidden; }

/* Hero motion */
.hb-hero__slide.is-active .hb-hero__img,
.hb-hero:not(.is-ready) .hb-hero__slide:first-child .hb-hero__img {
  animation: ken 16s var(--ease) both;
}
.hb-hero__slide.is-active .hb-hero__copy > *,
.hb-hero:not(.is-ready) .hb-hero__slide:first-child .hb-hero__copy > * {
  animation: rise 800ms var(--ease) both;
}
.hb-hero__slide.is-active .hb-hero__copy > *:nth-child(2) { animation-delay: 70ms; }
.hb-hero__slide.is-active .hb-hero__copy > *:nth-child(3) { animation-delay: 120ms; }
.hb-hero__slide.is-active .hb-hero__copy > *:nth-child(4) { animation-delay: 180ms; }
.hb-hero__slide.is-active .hb-hero__copy > *:nth-child(5) { animation-delay: 240ms; }
.hb-hero__pause {
  flex: 0 0 auto;
  width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%;
  background: rgb(244 239 230 / 0.12);
  color: var(--color-night-fg);
  font-size: 0.8rem;
  cursor: pointer;
  margin-bottom: 0.15rem;
}
.hb-hero__pause:hover { background: rgb(244 239 230 / 0.22); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }

.img-mask, .hb-stack__main {
  clip-path: inset(12% 12% 12% 12%);
  transition: clip-path 900ms var(--ease);
}
.reveal.is-in .img-mask,
.reveal.is-in .hb-stack__main,
.hb-stack.reveal.is-in .hb-stack__main {
  clip-path: inset(0);
}

.hb-partners {
  padding: 3rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
}
.hb-partners > .hb-kicker { text-align: center; margin-bottom: 1.6rem; }
.hb-partners__mask { position: relative; }
.hb-partners__mask::before,
.hb-partners__mask::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 4rem; z-index: 1;
  pointer-events: none;
}
.hb-partners__mask::before { left: 0; background: linear-gradient(to right, var(--color-paper), transparent); }
.hb-partners__mask::after { right: 0; background: linear-gradient(to left, var(--color-paper), transparent); }
.hb-partners__track {
  display: flex; width: max-content; gap: 3.5rem;
  animation: marquee 38s linear infinite;
}
.hb-partners__track span {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: rgb(36 28 24 / 0.28);
  white-space: nowrap;
}

.hb-projects.is-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 0 0.5rem;
  width: min(100% - 2.5rem, var(--wrap)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hb-projects.is-rail::-webkit-scrollbar { display: none; }
.hb-projects.is-rail .hb-projects__item {
  flex: 0 0 min(82vw, 22rem);
  scroll-snap-align: start;
  position: relative;
  border-radius: 1rem;
}
.hb-projects.is-rail img { aspect-ratio: 4/5; }
.hb-projects.is-rail .hb-projects__meta {
  position: absolute; inset: auto 0 0;
  padding: 1.4rem 1.2rem 1.2rem;
  background: linear-gradient(to top, var(--color-night), rgb(44 34 28 / 0.1));
  color: var(--color-night-fg);
}
.hb-projects.is-rail .hb-muted { color: var(--color-night-muted); }
.hb-projects.is-rail .hb-more { color: var(--color-ember-fg); }

.hb-showcase {
  position: relative;
  overflow: hidden;
  background: var(--color-night);
  color: var(--color-night-fg);
  min-height: 32rem;
}
@media (min-width: 640px) { .hb-showcase { min-height: 38rem; } }
.hb-showcase__stage { position: relative; min-height: inherit; }
.hb-showcase__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}
.hb-showcase__img.is-active { opacity: 1; }
.hb-showcase__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-night), rgb(44 34 28 / 0.55), rgb(44 34 28 / 0.1));
}
.hb-showcase__copy {
  position: relative;
  display: flex;
  min-height: 32rem;
  align-items: flex-end;
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}
@media (min-width: 640px) {
  .hb-showcase__copy { min-height: 38rem; padding: 4rem 0; }
}
.hb-showcase__panel { display: none; max-width: 42rem; }
.hb-showcase__panel.is-active { display: block; }
.hb-showcase__panel .hb-kicker { color: var(--color-ember-fg); }
.hb-showcase__panel h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hb-showcase__meta { margin: 1rem 0 0; color: var(--color-night-muted); }
.hb-showcase__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 2rem; }
.hb-btn--paper {
  background: var(--color-paper);
  color: var(--color-ink) !important;
}
.hb-btn--paper:hover { background: white; }
.hb-showcase__all { color: var(--color-night-fg); text-underline-offset: 4px; }
.hb-showcase__all:hover { text-decoration: underline; }
.hb-showcase__controls {
  position: absolute;
  right: 1rem;
  bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
@media (min-width: 640px) { .hb-showcase__controls { right: 2rem; } }
.hb-showcase__controls button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.3);
  background: transparent;
  color: var(--color-night-fg);
  cursor: pointer;
}
.hb-rail-head:has(+ .hb-showcase),
.hb-rail-head:has(+ .wp-block-heizbaer-project-grid .hb-showcase) { display: none; }

.hb-map {
  width: 100%;
  min-height: 22rem;
  border: 0;
  border-radius: 1rem;
  background: var(--color-paper-2);
}

.hb-services__item { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .hb-hero__img, .hb-pagehero__img, .hb-partners__track,
  .hb-hero__slide.is-active .hb-hero__copy > * { animation: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .img-mask, .hb-stack > img:first-of-type { clip-path: none; }
}

