/*
Theme Name: Harpstedt System
Description: Eigenständiges Blocktheme für Harpstedt Unternehmensberatung.
Version: 1.2.0
Requires at least: 6.6
Text Domain: harpstedt-system
*/

:root {
  --hs-graphite: #232b28;
  --hs-chalk: #f3f3eb;
  --hs-mineral: #477565;
  --hs-lime: #dae79c;
  --hs-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hs-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --hs-line: rgb(35 43 40 / 22%);
  --hs-muted: #555f59;
  --hs-focus: #477565;
  --hs-gutter: 32px;
}

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

html {
  scroll-padding-top: 32px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--hs-chalk);
  color: var(--hs-graphite);
  font-family: var(--hs-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--hs-lime);
  color: var(--hs-graphite);
}

:where(img, svg, video) {
  max-width: 100%;
}

img {
  height: auto;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--hs-sans);
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

:where(p, li, figcaption, address) {
  overflow-wrap: anywhere;
}

:where(a) {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:where(button, input, select, textarea) {
  font: inherit;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--hs-focus);
  outline-offset: 5px;
}

:where(button, input, select, textarea)[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.wp-site-blocks {
  padding-block: 0;
}

.wp-site-blocks > *,
.wp-site-blocks > main > :first-child {
  margin-block-start: 0;
}

.hs-shell {
  width: 100%;
  max-width: 1264px;
  margin-inline: auto;
  padding-inline: var(--hs-gutter);
}

.hs-shell.hs-shell > .hs-shell {
  max-width: none;
  padding-inline: 0;
}

:where(.hs-hero-grid, .hs-header-row, .hs-service-row, .hs-steps, .hs-person-grid, .hs-footer-grid, .hs-detail-grid, .hs-contact-grid) > * {
  min-width: 0;
  margin-block: 0;
}

/* The logo remains the approved asset; CSS only controls its placement. */
.hs-header {
  position: relative;
  z-index: 20;
  padding-block: 24px;
  border-bottom: 1px solid var(--hs-line);
  background: var(--hs-chalk);
}

.hs-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
}

.hs-logo {
  display: block;
  flex: 0 1 245px;
  width: 245px;
  max-width: 100%;
  line-height: 0;
}

.hs-logo :where(a, img, svg) {
  display: block;
  width: 100%;
  height: auto;
}

.hs-header .wp-block-navigation {
  flex: 1 1 auto;
  justify-content: flex-end;
  font-size: 16px;
}

.hs-header .hs-navigation:not(.wp-block-navigation) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.hs-header .hs-navigation:not(.wp-block-navigation) a {
  padding-block: 10px;
  text-decoration: none;
}

.hs-header .hs-navigation:not(.wp-block-navigation) a:hover {
  text-decoration: underline;
}

.hs-header .wp-block-navigation__container {
  gap: 12px 24px;
}

.hs-header .wp-block-navigation-item__content {
  padding-block: 10px;
  text-decoration: none;
  text-underline-offset: 0.4em;
}

.hs-header .wp-block-navigation-item__content:hover,
.hs-header .current-menu-item > .wp-block-navigation-item__content {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.hs-header .wp-block-navigation__submenu-container {
  min-width: 230px;
  padding: 12px;
  border: 1px solid var(--hs-line);
  border-radius: 0;
  background: var(--hs-chalk);
  color: var(--hs-graphite);
  box-shadow: 0 12px 32px rgb(35 43 40 / 8%);
}

.hs-header .wp-block-navigation-submenu__toggle {
  min-width: 32px;
  min-height: 40px;
  margin-inline-start: 0;
}

.hs-header .wp-block-navigation__responsive-container-open,
.hs-header .wp-block-navigation__responsive-container-close {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid var(--hs-line);
  border-radius: 2px;
  color: var(--hs-graphite);
}

.hs-eyebrow {
  margin: 0 0 24px;
  color: var(--hs-mineral);
  font-family: var(--hs-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hs-hero {
  padding-block: 72px 96px;
}

.hs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}

.hs-display {
  max-width: 640px;
  margin: 0 0 32px;
  font-size: clamp(48px, 5.6vw, 78px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hs-lead {
  max-width: 670px;
  margin-block: 0 32px;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -0.012em;
}

.hs-hero-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 510px;
  aspect-ratio: 4 / 5;
  padding: 28px;
  overflow: hidden;
  background: var(--hs-mineral);
  color: var(--hs-chalk);
}

.hs-hero-art > .hs-eyebrow {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin: 0;
  padding-block: 2px;
  background: var(--hs-mineral);
  color: var(--hs-chalk);
}

.hs-art-mark {
  position: absolute;
  z-index: 0;
  top: 10%;
  right: 15%;
  width: 70%;
  height: 58%;
  max-width: none;
  margin: 0;
  color: var(--hs-lime);
  pointer-events: none;
}

.hs-art-mark :where(img, svg) {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

.hs-art-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgb(243 243 235 / 30%);
  background: var(--hs-mineral);
  color: var(--hs-chalk);
  font-family: var(--hs-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hs-art-caption p {
  margin: 0;
}

.hs-art-caption p + p {
  margin-top: 8px;
}

.hs-section {
  padding-block: 96px;
}

.hs-section-heading {
  max-width: 820px;
  margin-block: 0 56px;
}

:is(h2, h3).hs-section-heading,
.hs-section-heading :where(h2, h3) {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hs-section-heading :where(h2, h3) {
  margin-block: 0 24px;
}

.hs-section-heading > :last-child {
  margin-block-end: 0;
}

/* Services read as a compact editorial index, not a wall of cards. */
.hs-service-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hs-line);
  list-style: none;
}

.hs-service-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 24px;
  padding-block: 32px;
  border-bottom: 1px solid var(--hs-line);
  color: inherit;
  text-decoration: none;
}

.hs-service-row :where(h2, h3, h4) {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hs-service-row :where(p) {
  margin: 0;
}

.hs-service-row :where(h2, h3, h4) a {
  text-decoration: none;
}

.hs-service-row :where(h2, h3, h4) a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

a.hs-service-row:hover :where(h2, h3, h4) {
  color: var(--hs-mineral);
}

.hs-service-number {
  padding-top: 5px;
  color: var(--hs-mineral);
  font-family: var(--hs-mono);
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.hs-dark {
  --hs-line: rgb(243 243 235 / 28%);
  --hs-muted: #c5cbc2;
  --hs-focus: #dae79c;
  background: var(--hs-graphite);
  color: var(--hs-chalk);
}

.hs-dark :where(h1, h2, h3, h4, h5, h6, a) {
  color: inherit;
}

.hs-dark :where(.hs-eyebrow, .hs-service-number) {
  color: var(--hs-lime);
}

.hs-dark a.hs-service-row:hover :where(h2, h3, h4) {
  color: var(--hs-lime);
}

.hs-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.hs-step {
  padding-top: 24px;
  border-top: 1px solid var(--hs-line);
}

.hs-step > :first-child {
  margin-top: 0;
}

.hs-step :where(h3, h4) {
  margin-block: 28px 16px;
  font-size: 28px;
  line-height: 1.2;
}

.hs-step > :last-child {
  margin-bottom: 0;
}

.hs-person-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.hs-portrait,
.hs-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 35%;
}

.hs-portrait {
  margin: 0;
  background: #dde2d8;
}

.hs-portrait figcaption {
  margin-top: 12px;
  color: var(--hs-muted);
  font-family: var(--hs-mono);
  font-size: 12px;
  line-height: 1.5;
}

.hs-cta {
  --hs-focus: #232b28;
  padding-block: 72px;
  background: var(--hs-lime);
  color: var(--hs-graphite);
}

.hs-cta .hs-eyebrow {
  color: var(--hs-graphite);
}

.hs-cta :where(h2, h3) {
  max-width: 900px;
  margin-block: 0 24px;
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.hs-cta p {
  max-width: 650px;
}

.hs-footer {
  --hs-line: rgb(243 243 235 / 25%);
  --hs-muted: #c5cbc2;
  --hs-focus: #dae79c;
  padding-block: 64px 32px;
  background: var(--hs-graphite);
  color: var(--hs-chalk);
  font-size: 16px;
}

.hs-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.75fr);
  gap: 48px;
}

.hs-footer :where(h2, h3, h4) {
  margin-block: 0 18px;
  color: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.hs-footer p {
  margin-block: 0 16px;
}

.hs-footer :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-footer li + li {
  margin-top: 10px;
}

.hs-footer a {
  color: inherit;
  text-decoration: none;
}

.hs-footer a:hover {
  text-decoration: underline;
}

.hs-footer :where(.hs-eyebrow) {
  color: var(--hs-lime);
}

.hs-footer hr {
  margin-block: 48px 24px;
  border: 0;
  border-top: 1px solid var(--hs-line);
}

.hs-footer .wp-block-navigation {
  font-size: inherit;
}

.hs-footer .hs-footer-claim {
  margin-block: 28px 20px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hs-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 48px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hs-line);
  color: var(--hs-muted);
  font-size: 13px;
  line-height: 1.6;
}

.hs-footer-bottom > * {
  min-width: 0;
  margin: 0;
}

.hs-footer-bottom > :first-child {
  max-width: 620px;
}

/* Native buttons inherit the same geometry in the editor and frontend. */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.wp-block-buttons > .wp-block-button {
  margin: 0;
}

:where(.wp-block-button__link, .wp-element-button, .hs-form button[type="submit"], .hs-form input[type="submit"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 16px 24px;
  border: 1px solid var(--hs-graphite);
  border-radius: 2px;
  background: var(--hs-graphite);
  color: var(--hs-chalk);
  font-family: var(--hs-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

:where(.wp-block-button__link, .wp-element-button, .hs-form button[type="submit"], .hs-form input[type="submit"]):hover {
  border-color: var(--hs-mineral);
  background: var(--hs-mineral);
  color: var(--hs-chalk);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
  padding: 16px 24px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: var(--hs-graphite);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  border-color: var(--hs-graphite);
  background: var(--hs-graphite);
  color: var(--hs-chalk);
}

:where(.hs-dark, .hs-footer) .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
  border-color: var(--hs-lime);
  background: var(--hs-lime);
  color: var(--hs-graphite);
}

:where(.hs-dark, .hs-footer) .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
  border-color: var(--hs-chalk);
  background: var(--hs-chalk);
}

:where(.hs-dark, .hs-footer) .wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--hs-chalk);
}

:where(.hs-dark, .hs-footer) .wp-block-button.is-style-outline > .wp-block-button__link:hover {
  border-color: var(--hs-chalk);
  background: var(--hs-chalk);
  color: var(--hs-graphite);
}

.hs-page-hero {
  padding-block: 56px 72px;
  border-bottom: 1px solid var(--hs-line);
}

.hs-page-title {
  max-width: 1080px;
  margin-block: 0 32px;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hs-page-hero .hs-lead {
  max-width: 820px;
  margin-bottom: 0;
}

.hs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block: 0 36px;
  color: var(--hs-muted);
  font-family: var(--hs-mono);
  font-size: 12px;
  line-height: 1.65;
}

.hs-breadcrumb :where(p, ol, ul) {
  margin: 0;
}

.hs-breadcrumb :where(ol, ul) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.hs-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  align-items: start;
  gap: 64px;
}

.hs-copy {
  min-width: 0;
  max-width: 780px;
}

.hs-copy :where(h2, h3, h4) {
  margin-block: 56px 20px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.hs-copy h3 {
  font-size: clamp(24px, 2.4vw, 28px);
}

.hs-copy :where(p, ul, ol) {
  margin-block: 0 24px;
}

.hs-copy :where(ul, ol) {
  padding-inline-start: 1.2em;
}

.hs-copy li {
  padding-inline-start: 0.2em;
}

.hs-copy li + li {
  margin-top: 10px;
}

.hs-copy li::marker {
  color: var(--hs-mineral);
}

.hs-copy > :first-child,
.hs-copy > section:first-child > :first-child {
  margin-top: 0;
}

.hs-copy > :last-child {
  margin-bottom: 0;
}

.hs-aside {
  padding: 24px 0 0 28px;
  border-top: 1px solid var(--hs-mineral);
  border-left: 1px solid var(--hs-line);
  font-size: 16px;
  line-height: 1.65;
}

.hs-aside :where(h2, h3, h4) {
  margin-block: 0 20px;
  font-size: 24px;
  line-height: 1.25;
}

.hs-aside .hs-eyebrow {
  margin-bottom: 16px;
}

.hs-aside .wp-block-button__link {
  padding: 14px 18px;
  font-size: 16px;
}

.hs-faq {
  max-width: 900px;
  margin-top: 64px;
}

.hs-faq > :where(h2, h3) {
  margin-block: 0 28px;
}

.hs-faq :where(details, .wp-block-details) {
  margin: 0;
  padding-block: 24px;
  border-top: 1px solid var(--hs-line);
}

.hs-faq :where(details, .wp-block-details):last-child {
  border-bottom: 1px solid var(--hs-line);
}

.hs-faq summary {
  padding-inline-end: 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.hs-faq summary::marker {
  color: var(--hs-mineral);
  font-size: 15px;
}

.hs-faq details > :not(summary) {
  margin-top: 16px;
}

.hs-faq details > :last-child {
  margin-bottom: 0;
}

.hs-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 72px;
}

.hs-contact-grid address {
  font-style: normal;
}

.hs-contact-grid :where(h2, h3) {
  margin-block: 0 24px;
  font-size: 32px;
  line-height: 1.2;
}

.hs-form {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.hs-form :where(p, fieldset) {
  min-width: 0;
  margin: 0;
}

.hs-form fieldset {
  padding: 0;
  border: 0;
}

.hs-form :where(label, legend) {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.hs-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #758078;
  border-radius: 2px;
  background: transparent;
  color: var(--hs-graphite);
  font-family: var(--hs-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.hs-form textarea {
  min-height: 180px;
  resize: vertical;
}

.hs-form :where(input, textarea)::placeholder {
  color: #626d65;
  opacity: 1;
}

.hs-form :where(input[type="checkbox"], input[type="radio"]) {
  width: 20px;
  height: 20px;
  margin: 4px 8px 0 0;
  accent-color: var(--hs-mineral);
  vertical-align: top;
}

.hs-form label:has(input[type="checkbox"], input[type="radio"]) {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 15px;
  font-weight: 400;
}

.hs-form :where(input[type="checkbox"], input[type="radio"]) {
  flex: 0 0 20px;
}

.hs-form :where([aria-invalid="true"]) {
  border-width: 2px;
  border-color: var(--hs-graphite);
}

.hs-form :where(small, .description) {
  display: block;
  margin-top: 8px;
  color: var(--hs-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hs-form :where([role="status"], [role="alert"]) {
  padding: 16px;
  border: 1px solid currentColor;
  line-height: 1.5;
}

.hs-form button[type="submit"],
.hs-form input[type="submit"] {
  justify-self: start;
}

@media (min-width: 901px) {
  .hs-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --hs-gutter: 28px;
  }

  .hs-header {
    padding-block: 18px;
  }

  .hs-header-row {
    gap: 16px;
    min-height: 48px;
  }

  .hs-logo {
    flex-basis: 225px;
    width: 225px;
  }

  .hs-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }

  .hs-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .hs-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    padding: 88px var(--hs-gutter) 40px;
    overflow-y: auto;
    background: var(--hs-chalk);
    color: var(--hs-graphite);
  }

  .hs-header .wp-block-navigation__responsive-container-close {
    position: fixed;
    top: 22px;
    right: var(--hs-gutter);
    display: flex;
  }

  .admin-bar .hs-header .wp-block-navigation__responsive-container-close {
    top: 56px;
  }

  .hs-header .wp-block-navigation__responsive-container-content {
    width: 100%;
    padding: 0;
  }

  .hs-header .is-menu-open .wp-block-navigation__responsive-container-content,
  .hs-header .is-menu-open .wp-block-navigation__container {
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
  }

  .hs-header .is-menu-open .wp-block-navigation-item {
    align-items: flex-start;
    width: 100%;
  }

  .hs-header .is-menu-open .wp-block-navigation-item__content {
    width: 100%;
    padding-block: 10px;
    font-size: 24px;
    line-height: 1.3;
  }

  .hs-header .is-menu-open .wp-block-navigation__submenu-container {
    width: 100%;
    min-width: 0;
    padding: 4px 0 8px 20px;
    border: 0;
    border-left: 1px solid var(--hs-line);
    box-shadow: none;
  }

  .hs-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    font-size: 18px;
  }

  .hs-hero {
    padding-block: 56px 72px;
  }

  .hs-hero-grid {
    gap: 28px;
  }

  .hs-display {
    font-size: clamp(44px, 5.6vw, 56px);
    letter-spacing: -0.045em;
  }

  .hs-hero-art {
    min-height: 420px;
    padding: 24px;
  }

  .hs-section {
    padding-block: 72px;
  }

  .hs-section-heading {
    margin-bottom: 40px;
  }

  .hs-service-row {
    grid-template-columns: 36px minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
    padding-block: 28px;
  }

  .hs-steps {
    gap: 24px;
  }

  .hs-step :where(h3, h4) {
    font-size: 24px;
  }

  .hs-person-grid {
    gap: 32px;
  }

  .hs-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hs-aside {
    max-width: 780px;
    padding: 28px 0 0;
    border-left: 0;
  }

  .hs-contact-grid {
    gap: 40px;
  }

  .hs-footer-grid {
    gap: 28px;
  }
}

@media (max-width: 600px) {
  :root {
    --hs-gutter: 20px;
  }

  .hs-header {
    padding-block: 16px;
  }

  .hs-logo {
    flex-basis: 205px;
    width: 205px;
    max-width: calc(100vw - 116px);
  }

  .hs-header .wp-block-navigation {
    flex: 0 0 auto;
  }

  .hs-header-row:has(.hs-navigation:not(.wp-block-navigation)) {
    flex-wrap: wrap;
  }

  .hs-header .hs-navigation:not(.wp-block-navigation) {
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 4px 24px;
    padding-top: 8px;
    font-size: 14px;
  }

  .admin-bar .hs-header .wp-block-navigation__responsive-container-close {
    top: 68px;
  }

  .hs-hero {
    padding-block: 40px 56px;
  }

  .hs-hero-grid,
  .hs-person-grid,
  .hs-steps,
  .hs-contact-grid,
  .hs-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hs-display {
    margin-bottom: 24px;
    font-size: clamp(44px, 10vw, 48px);
    line-height: 1.03;
  }

  .hs-eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.09em;
  }

  .hs-lead {
    font-size: 20px;
    line-height: 1.55;
  }

  .hs-hero-art {
    min-height: 340px;
    aspect-ratio: 6 / 5;
    padding: 24px;
  }

  .hs-art-mark {
    top: 10%;
    right: 15%;
    width: 70%;
  }

  .hs-art-caption {
    font-size: 11px;
  }

  .hs-section {
    padding-block: 56px;
  }

  .hs-section-heading {
    margin-bottom: 32px;
  }

  :is(h2, h3).hs-section-heading,
  .hs-section-heading :where(h2, h3) {
    font-size: 34px;
  }

  .hs-service-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px 16px;
    padding-block: 24px;
  }

  .hs-service-row > :nth-child(n + 3) {
    grid-column: 2;
  }

  .hs-service-row :where(h2, h3, h4) {
    font-size: 26px;
  }

  .hs-service-number {
    font-size: 12px;
  }

  .hs-step {
    padding-top: 20px;
  }

  .hs-step :where(h3, h4) {
    margin-top: 20px;
    font-size: 28px;
  }

  .hs-cta {
    padding-block: 48px;
  }

  .hs-cta :where(h2, h3) {
    font-size: 36px;
  }

  .hs-page-hero {
    padding-block: 32px 48px;
  }

  .hs-page-title {
    margin-bottom: 24px;
    font-size: clamp(38px, 10vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .hs-breadcrumb {
    margin-bottom: 28px;
    font-size: 11px;
  }

  .hs-detail-grid {
    gap: 40px;
  }

  .hs-copy :where(h2, h3, h4) {
    margin-top: 40px;
    font-size: 28px;
  }

  .hs-copy h3 {
    font-size: 24px;
  }

  .hs-faq {
    margin-top: 48px;
  }

  .hs-faq summary {
    font-size: 19px;
  }

  .hs-footer {
    padding-block: 48px 24px;
  }

  .hs-footer hr {
    margin-block: 36px 24px;
  }

  .hs-footer-bottom {
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
  }

  .hs-form {
    gap: 20px;
  }

  .wp-block-buttons > .wp-block-button,
  .hs-form button[type="submit"],
  .hs-form input[type="submit"] {
    width: 100%;
  }

  .wp-block-buttons > .wp-block-button > .wp-block-button__link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keep the hero artwork within narrow screens. */
.hs-hero-art { width:100%; min-width:0; }
.hs-header .wp-block-navigation__responsive-container.is-menu-open { background:var(--hs-chalk) !important; color:var(--hs-graphite) !important; }
@media(max-width:600px){ .hs-hero-art { aspect-ratio:auto; min-height:400px; } }

/* Accessible outline buttons on dark sections. */
.hs-dark .wp-block-button.is-style-outline > .wp-block-button__link,
.hs-footer .wp-block-button.is-style-outline > .wp-block-button__link { color:#F3F3EB; border-color:#F3F3EB; background:transparent; }
.hs-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.hs-dark .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible { color:#232B28; background:#DAE79C; border-color:#DAE79C; }
.hs-copy h2[id] { scroll-margin-top:120px; }

/* The final CTA uses lime, even when nested inside a dark section. */
.hs-cta .wp-block-button.is-style-outline > .wp-block-button__link { color:#232B28; border-color:#232B28; background:transparent; }
.hs-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.hs-cta .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible { color:#F3F3EB; background:#232B28; border-color:#232B28; }

/* Editorial content shares the established Harpstedt typography and palette. */
.hs-article-shell { max-width: 860px; }
.hs-magazine-article h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height:1.08; max-width:21ch; }
.hs-article-meta { display:flex; flex-wrap:wrap; gap:8px 22px; margin:26px 0 44px; font-size:14px; color:#477565; }
.hs-article-meta p { margin:0; }
.hs-article-body { max-width:760px; }
.hs-article-body > * { margin-block:0 24px; }
.hs-article-body :is(h2,h3) { scroll-margin-top:110px; margin-top:48px; line-height:1.2; }
.hs-article-body h2 { font-size:clamp(1.65rem,3vw,2.2rem); }
.hs-article-body h3 { font-size:1.3rem; }
.hs-article-body :is(ul,ol) { padding-left:1.35em; }
.hs-article-body li + li { margin-top:10px; }
.hs-article-body a { text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.hs-article-body .wp-block-table { overflow:auto; max-width:100%; margin-block:28px; border:1px solid #c7cec3; }
.hs-article-body table { width:100%; border-collapse:collapse; font-size:16px; }
.hs-article-body :is(td,th) { padding:14px; vertical-align:top; text-align:left; border:1px solid #c7cec3; min-width:130px; }
.hs-article-body th { background:#e4ead6; color:#232B28; }
.hs-magazine-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; padding:0; list-style:none; }
.hs-magazine-card { height:100%; border-top:3px solid #477565; padding:26px 0; }
.hs-magazine-card h2 { font-size:clamp(1.5rem,2.6vw,2.1rem); line-height:1.2; margin:0 0 16px; }
.hs-magazine-card .wp-block-post-date { font-family:var(--wp--preset--font-family--mono); font-size:12px; color:#477565; }
.hs-magazine-card .wp-block-post-excerpt__more-link { display:inline-block; margin-top:8px; text-decoration:underline; }
.hs-magazine-index .wp-block-query { margin-top:48px; }
.hs-magazine-index .wp-block-query-pagination { margin-top:32px; }
@media(max-width:700px){.hs-magazine-grid{grid-template-columns:1fr;gap:16px}.hs-article-meta{display:block}.hs-article-meta .wp-block-post-date{margin-top:8px}.hs-article-body :is(td,th){padding:11px;min-width:120px}}

/* Reset WordPress flow spacing inside the explicit editorial grid and metadata row. */
.hs-magazine-grid > li { margin-block-start:0 !important; }
.hs-article-meta > * { margin:0 !important; }
@media(max-width:700px){ .hs-article-meta > .wp-block-post-date { margin-top:8px !important; } }

/* Keep comparison columns readable instead of squeezing fixed-layout tables on phones. */
.hs-article-body .wp-block-table table { table-layout:auto; min-width:600px; }
.hs-article-body .wp-block-table:focus-visible { outline:2px solid #477565; outline-offset:3px; }
