.areoxa-content,
.areoxa-content.entry-content {
  max-width: none;
  margin: 0;
  padding: 0;
  background-color: #08131e;
}
.wp-block-areoxa-section {
  display: contents;
}

/*
 * Any leftover spacer between dark sections used to flash paper/cream.
 * Paint the page chrome navy so gaps are invisible; light sections keep their own fills.
 */
html,
body {
  background-color: #08131e !important;
}
main {
  background-color: #08131e;
}

/* Kill empty paper strip between stacked dark sections */
.section-divider,
div.section-divider,
.areoxa-content > p:empty,
.entry-content > p:empty,
.areoxa-content > *:has(> .section-divider),
.entry-content > *:has(> .section-divider) {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}
.areoxa-content > .wp-block-areoxa-section + .wp-block-areoxa-section,
.entry-content > .wp-block-areoxa-section + .wp-block-areoxa-section,
.areoxa-content > *,
.entry-content > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.dark-section + .dark-section,
.section.dark-section + .section.dark-section,
#ansatz + #leistungen,
#leistungen + #unternehmen,
#leistungen + .section-divider + #unternehmen {
  margin-top: 0 !important;
}
#leistungen,
.dark-section,
.dark-section#unternehmen,
.section.dark-section#unternehmen {
  background-color: #08131e !important;
}

/*
 * Navy page chrome was added to hide cream gaps between dark bands.
 * Light sections in the original HTML inherit paper/cream from body —
 * they must paint their own fill again so WP pages match index.html.
 * NOTE: do NOT target bare #unternehmen — case pages reuse that id on .section.light
 */
.section:not(.dark-section):not(.dark),
.section.light,
.section.alt,
.inner-section:not(.dark),
.intro,
.capabilities,
.references,
.legal-wrap,
.case-story-band,
.sw-intro,
.sw-capabilities,
.sw-process {
  background-color: var(--paper, var(--cream, #f5f4ef)) !important;
  color: var(--ink, #12202c) !important;
}
.section.alt,
.capabilities,
.sw-capabilities,
.sw-process {
  background-color: var(--paper2, var(--stone, #ebe9e3)) !important;
}
.section.dark,
.section.dark-section {
  background-color: var(--navy, #08131e) !important;
  color: #fff !important;
}
.section:not(.dark-section):not(.dark) h2,
.section.light h2,
.section.light h3,
.section:not(.dark-section):not(.dark) .section-head h2,
.intro h2,
.capabilities h3,
.legal-section h2,
.inner-section:not(.dark) h2,
.sw-intro h2 {
  color: var(--ink, #12202c) !important;
}
.section:not(.dark-section):not(.dark) .lead,
.section.light p,
.section:not(.dark):not(.dark-section) p,
.intro .lead,
.capabilities p,
.legal-section p {
  color: var(--muted, #68737d) !important;
}
.section.dark p,
.section.dark-section p {
  color: rgba(255, 255, 255, 0.68) !important;
}
.section:not(.dark-section):not(.dark) .kicker,
.section:not(.dark-section):not(.dark) .eyebrow,
.section.light .eyebrow,
.section.light .kicker,
.section:not(.dark-section):not(.dark) .section-kicker {
  color: var(--gold, #8b7a68) !important;
}
.section.dark .eyebrow,
.section.dark .kicker,
.section.dark-section .section-kicker {
  color: #c2aa8e !important;
}

/* Light bands must stay cream with dark type — never inherit navy chrome */
.light-section,
.section.light-section,
#ansatz {
  background-color: var(--paper, #f5f4ef) !important;
  color: var(--ink, #101b28) !important;
}
.light-section .display,
.light-section .text-link,
#ansatz .display,
#ansatz .text-link {
  color: var(--ink, #101b28) !important;
}
.light-section .body-copy,
#ansatz .body-copy {
  color: #606a74 !important;
}
.light-section .section-kicker,
#ansatz .section-kicker {
  color: #8b7a68 !important;
}
/* People band is cream on desktop — keep the same on phones */
.people,
#branchen {
  background-color: #f6f5f1 !important;
  color: var(--ink, #101b28) !important;
}
.people .display,
.people h2,
#branchen .display,
#branchen h2 {
  color: var(--ink, #101b28) !important;
}
.people .body-copy,
#branchen .body-copy {
  color: #606a74 !important;
}
.people .section-kicker,
#branchen .section-kicker {
  color: #8b7a68 !important;
}
@media (max-width: 760px) {
  .people,
  #branchen {
    padding: 40px 22px 56px !important;
    box-sizing: border-box !important;
  }
  .references,
  #referenzen {
    padding-top: 72px !important;
    padding-bottom: 36px !important;
  }
  .references .ref-grid,
  #referenzen .ref-grid {
    margin-top: 36px !important;
  }
  .people-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .people-grid > div:first-child {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .people .display,
  .people h2,
  #branchen .display,
  #branchen h2 {
    font-size: clamp(32px, 8.2vw, 42px) !important;
    line-height: 1.08 !important;
    margin: 20px 0 16px !important;
    max-width: 100% !important;
  }
  .people .body-copy,
  #branchen .body-copy {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
  }
  .people-cards {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100% !important;
  }
  .people .person,
  #branchen .person {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .people .person img,
  #branchen .person img {
    width: 72% !important;
    max-width: 260px !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    object-fit: cover !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .people .person figcaption,
  #branchen .person figcaption {
    width: 72% !important;
    max-width: 260px !important;
    text-align: center !important;
  }
}

/* Quote band — readable wrapping on phones */
@media (max-width: 760px) {
  .quote-band {
    padding: 72px 26px 68px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .quote-band blockquote {
    font-size: clamp(28px, 7.6vw, 38px) !important;
    line-height: 1.14 !important;
    max-width: 18ch !important;
    margin: 0 auto !important;
    font-weight: 500 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .quote-band p {
    margin: 28px auto 0 !important;
    max-width: 22ch !important;
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
    line-height: 1.65 !important;
    text-wrap: balance;
  }
}
#leistungen {
  margin-bottom: 0 !important;
  padding-bottom: 28px !important;
  scroll-margin-top: 88px;
}
/* Homepage dark band only — case pages reuse #unternehmen on .section.light */
.dark-section#unternehmen,
.section.dark-section#unternehmen,
.section.dark#unternehmen {
  margin-top: 0 !important;
  padding-top: 0 !important;
  scroll-margin-top: 88px;
}
.section.light#unternehmen,
.section#unternehmen.light {
  scroll-margin-top: 88px;
}

/* Case «Das Unternehmen» — even columns, controlled image, stacks cleanly */
.section.light#unternehmen .grid-2,
.section#unternehmen.light .grid-2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important;
  gap: clamp(28px, 4.5vw, 64px) !important;
  align-items: start !important;
}
.section.light#unternehmen .grid-2 > div:first-child,
.section#unternehmen.light .grid-2 > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.section.light#unternehmen .source-box,
.section#unternehmen.light .source-box {
  margin-top: 28px !important;
  margin-bottom: 0 !important;
}
.section.light#unternehmen .client-image,
.section#unternehmen.light .client-image {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 10 !important;
  background: #dfe1df !important;
  align-self: start !important;
}
.section.light#unternehmen .client-image img,
.section#unternehmen.light .client-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  aspect-ratio: auto !important;
  display: block !important;
}
@media (max-width: 1000px) {
  .section.light#unternehmen .grid-2,
  .section#unternehmen.light .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .section.light#unternehmen .client-image,
  .section#unternehmen.light .client-image {
    max-width: 520px !important;
    aspect-ratio: 16 / 10 !important;
  }
}
@media (max-width: 760px) {
  .section.light#unternehmen,
  .section#unternehmen.light {
    padding-top: 78px !important;
    padding-bottom: 78px !important;
  }
  .section.light#unternehmen .client-image,
  .section#unternehmen.light .client-image {
    max-width: 100% !important;
  }
}

/*
 * Case study layouts — responsive at every width.
 * div.person = case «Persönliche Verantwortung» (homepage uses figure.person).
 */
div.person {
  display: grid !important;
  grid-template-columns: 190px minmax(0, 1fr) !important;
  gap: clamp(22px, 3vw, 36px) !important;
  align-items: center !important;
  min-width: 0 !important;
  width: 100% !important;
}
div.person > div {
  min-width: 0 !important;
  max-width: 100% !important;
}
div.person img {
  width: 190px !important;
  height: 230px !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
div.person h3 {
  font-size: clamp(26px, 3.6vw, 34px) !important;
  line-height: 1.12 !important;
  margin: 0 0 14px !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
}
div.person p,
div.person .eyebrow {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}
.section .story,
.section .result,
.section .grid-2 {
  min-width: 0 !important;
}
.section .story > *,
.section .result > *,
.section h2,
.section h3 {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 900px) {
  div.person {
    grid-template-columns: 140px minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  div.person img {
    width: 140px !important;
    height: 170px !important;
  }
  .section .story {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}
@media (max-width: 720px) {
  div.person {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    justify-items: start !important;
    align-items: start !important;
  }
  div.person img {
    width: 160px !important;
    height: 195px !important;
  }
  div.person h3 {
    font-size: clamp(28px, 8vw, 34px) !important;
  }
  .section .result {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .section .gallery {
    grid-template-columns: 1fr !important;
  }
  .section .timeline-row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .section .timeline-copy {
    grid-column: 2 !important;
  }
}
.compare {
  margin-top: 0 !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
}
.compare-col {
  padding-top: 18px !important;
}

/* Shared header brand — same on home, cases, and every subpage */
.site-nav .brand {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1 !important;
  min-width: 0 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.site-nav .brand-word {
  font-family: Inter, Arial, sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: 0.23em !important;
  font-size: 29px !important;
  line-height: 1 !important;
  color: #fff !important;
}
.site-nav .brand-dot {
  display: none !important;
}
.site-nav .brand-sub {
  display: block !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 7.5px !important;
  letter-spacing: 0.18em !important;
  margin-top: 8px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  text-transform: none !important;
}
.site-nav .brand-logo {
  /* Match coded lockup: ~29px word + 8px gap + ~7.5px sub */
  height: 48px !important;
  width: auto !important;
  max-width: 280px !important;
  display: block !important;
  object-fit: contain !important;
  object-position: left center !important;
}
@media (max-width: 760px) {
  .site-nav .brand-word {
    font-size: 23px !important;
  }
  .site-nav .brand-sub {
    font-size: 6px !important;
  }
  .site-nav .brand-logo {
    height: 40px !important;
    max-width: 220px !important;
  }
}

/* Header always pinned to the viewport top on every page */
.site-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100000 !important;
  box-sizing: border-box;
}
.site-nav.scrolled {
  position: fixed !important;
}

/* Phones: always use the dark scrolled header (never frosted/white over bright hero) */
@media (max-width: 1100px) {
  .site-nav,
  .site-nav.scrolled {
    background: rgba(7, 16, 25, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
}

/* Sit below the WP admin bar on desktop only */
body.admin-bar .site-nav {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  /* Phones: site navbar flush to the top (match visitor view) */
  html.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body.admin-bar .site-nav,
  body.admin-bar .site-nav.scrolled {
    top: 0 !important;
  }
  #wpadminbar {
    display: none !important;
  }
}
/* Avoid empty cream gap if the admin bar is hidden / not painted */
body.admin-bar:has(#wpadminbar[style*="display: none"]) .site-nav,
body.admin-bar:has(#wpadminbar[aria-hidden="true"]) .site-nav {
  top: 0 !important;
}
html.admin-bar {
  background-color: #071019;
}
/* Keep WP admin bar opaque so no cream strip shows through */
@media screen and (min-width: 783px) {
  #wpadminbar {
    background: #1d2327 !important;
  }
}

/* Dropdown / submenu support */
.site-nav .nav-links {
  align-items: center;
}
.site-nav .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.site-nav .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-nav .nav-caret {
  font-size: 9px;
  opacity: 0.75;
  line-height: 1;
}
.site-nav .nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  padding: 10px 0;
  background: rgba(7, 16, 25, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 50;
}
.site-nav .nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.site-nav .nav-item:hover > .nav-sub,
.site-nav .nav-item:focus-within > .nav-sub,
.site-nav .nav-item.is-open > .nav-sub {
  display: block;
}
.site-nav .nav-sub a,
.site-nav .nav-sub .nav-sub-link {
  display: block;
  padding: 11px 18px;
  white-space: nowrap;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  letter-spacing: 0.02em;
}
.site-nav .nav-sub a:hover,
.site-nav .nav-sub a.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .mobile-menu .nav-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.site-nav .mobile-menu .nav-item > a {
  width: 100%;
  justify-content: space-between;
}
.site-nav .mobile-menu .nav-sub {
  display: none;
  position: static;
  transform: none;
  min-width: 0;
  margin: 0;
  padding: 0 0 6px 14px;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.site-nav .mobile-menu .nav-item.is-open > .nav-sub {
  display: block;
}
.site-nav .mobile-menu .nav-sub a {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Language switcher */
.site-nav .lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.site-nav .lang-link {
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  font-size: inherit;
  letter-spacing: inherit;
}
.site-nav .lang-link.is-active,
.site-nav .lang-link:hover {
  color: #fff !important;
}
.site-nav .lang-sep {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 2px;
  pointer-events: none;
}
.site-nav .mobile-lang {
  padding: 14px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}
.site-nav .mobile-lang .lang {
  font-size: 13px;
}

/* CTA never truncates */
.site-nav .nav-cta {
  white-space: nowrap !important;
  flex-shrink: 0;
}
.site-nav .nav-right {
  flex-shrink: 0;
}

/* Contain page overflow without clipping nav dropdowns */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
main,
.areoxa-content,
.section,
.dark-section,
.light-section,
.portfolio,
.portfolio-item,
.services-intro,
.section-grid,
.hero-layout {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Keep case CTA max-width:var(--max) so text aligns with .section / HTML */
.cta-inner {
  min-width: 0;
  box-sizing: border-box;
}
.site-nav,
.site-nav .nav-item,
.site-nav .nav-sub {
  overflow: visible;
}

/* Desktop Leistungsbereiche — match index.html */
#leistungen .services-intro {
  position: relative;
}
#leistungen .body-copy {
  max-width: 470px;
}
.portfolio {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-top: 55px;
}
.portfolio-item {
  background: #08131e;
  min-height: 260px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-sizing: border-box;
}
.portfolio h3 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 36px !important;
  line-height: 1.05 !important;
  font-weight: 500 !important;
  margin: 30px 0 10px !important;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.portfolio p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 440px;
}

@media (min-width: 1100px) {
  #leistungen .services-intro > .areoxa-glass-panel {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: calc(100% - 490px) !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }
}

/* Keep long German compound words from blowing out mobile layouts */
@media (max-width: 1000px) {
  .portfolio-item,
  .portfolio p,
  .display,
  .section-head h2,
  .page-hero h1,
  .hero-copy h1,
  .body-copy,
  .lead,
  .hero-lead {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }
  .portfolio {
    grid-template-columns: 1fr !important;
  }
  .portfolio-item {
    overflow: hidden;
    padding: clamp(22px, 5vw, 40px) !important;
  }
  .portfolio h3 {
    font-size: clamp(28px, 6vw, 34px) !important;
  }
  .portfolio p {
    max-width: 100% !important;
  }
}

/* Slightly compress nav before hamburger — desktop look preserved above 1200 */
@media (max-width: 1200px) and (min-width: 1101px) {
  .site-nav .nav-shell {
    gap: 18px !important;
    padding: 0 28px !important;
  }
  .site-nav .nav-links {
    gap: 16px !important;
  }
  .site-nav .nav-links a {
    font-size: 11px !important;
  }
  .site-nav .nav-right {
    gap: 12px !important;
  }
  .site-nav .nav-cta {
    padding: 10px 14px !important;
    font-size: 11px !important;
  }
  .site-nav .brand-word {
    font-size: 24px !important;
  }
  .site-nav .brand-logo {
    height: 40px !important;
    max-width: 220px !important;
  }
}

/* Hamburger earlier so mid-width CTA isn't crushed */
@media (max-width: 1100px) {
  .site-nav .nav-shell {
    padding: 0 22px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    grid-template-columns: none !important;
  }
  .site-nav .nav-links,
  .site-nav .nav-right .lang,
  .site-nav .nav-right .nav-cta {
    display: none !important;
  }
  .site-nav .nav-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 5px !important;
    background: none !important;
    border: 0 !important;
    color: #fff !important;
    width: 42px !important;
    height: 35px !important;
    padding: 0 !important;
    cursor: pointer !important;
  }
  .site-nav .nav-toggle i {
    display: block !important;
    width: 25px !important;
    height: 1px !important;
    background: #fff !important;
  }
  .site-nav .mobile-menu {
    display: none;
    background: rgba(6, 14, 22, 0.98);
    padding: 12px 22px 22px;
    flex-direction: column;
  }
  .site-nav.menu-open .mobile-menu,
  .menu-open .mobile-menu {
    display: flex !important;
  }
  .site-nav .mobile-lang,
  .site-nav .mobile-lang .lang {
    display: inline-flex !important;
  }
}

@media (max-width: 760px) {
  .site-nav .nav-right .lang {
    display: none !important;
  }
  .site-nav .mobile-lang,
  .site-nav .mobile-lang .lang {
    display: inline-flex !important;
  }

  /* Home hero: pull copy higher on phones */
  .hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .hero-shell {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 96px 22px 36px !important;
    min-height: 78svh !important;
    min-height: 78dvh !important;
    box-sizing: border-box !important;
  }
  .hero-copy {
    width: 100% !important;
    padding: 0 !important;
    margin-top: 0 !important;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 44px) !important;
    line-height: 1.02 !important;
    margin-bottom: 14px !important;
  }
  .hero-lead {
    font-size: 14px !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
  }
  .hero .eyebrow {
    margin-bottom: 14px !important;
  }
  .scroll-mark {
    display: none !important;
  }
  /* Ansatz panel: full-bleed on phones, less empty padding */
  .image-panel {
    min-height: 0 !important;
  }
  .responsibility {
    width: 100% !important;
    min-width: 0 !important;
    padding: 28px 22px !important;
  }

  /* Contact: full-width card, text starts evenly from the left */
  .contact {
    padding: 0 !important;
    background: #08131e !important; /* no cream strip above/below card */
  }
  .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .contact-intro {
    padding: 56px 22px 32px !important;
    max-width: 100% !important;
    background: #ebe9e3 !important;
    color: var(--ink, #101b28) !important;
  }
  .contact-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 40px 22px !important;
    box-sizing: border-box !important;
  }
  .contact-card h3,
  .contact-card p,
  .contact-links,
  .contact-card .outline-btn,
  .contact-card .checklist {
    max-width: 100% !important;
  }
  .checklist {
    border-top: 0 !important;
    margin-top: 20px !important;
    padding-top: 0 !important;
  }

  /* Kill white/cream gaps & thin dividers between dark bands */
  .section-divider,
  .areoxa-content > p:empty,
  .entry-content > p:empty,
  .areoxa-content > .wp-block-areoxa-section:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  main {
    background: #08131e;
  }
  #leistungen,
  .dark-section#unternehmen,
  .section.dark-section#unternehmen,
  .dark-section,
  .quote-band,
  .site-footer,
  .trust-strip {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  #leistungen {
    padding-bottom: 12px !important;
  }
  .dark-section#unternehmen,
  .section.dark-section#unternehmen {
    padding-top: 0 !important;
  }
  .compare {
    margin-top: 0 !important;
    border-top: 0 !important;
  }
  .compare-col {
    padding-top: 12px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  .portfolio-item {
    min-height: 0 !important;
  }
  .site-footer {
    margin-top: 0 !important;
    padding-top: 60px !important;
  }
}

/* ---- Mobile typography & layout (all page types) ---- */
@media (max-width: 760px) {
  .page-hero,
  .legal-hero,
  .hero-copy,
  .sw-hero,
  .section,
  .cta,
  .intro,
  .capabilities,
  .process,
  .dark-section {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  /* Case CTAs pad via .cta-inner (like HTML) — don't double-inset the outer .cta */
  .cta:has(> .cta-inner) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .cta > .cta-inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  .page-hero h1,
  .legal-hero h1,
  .hero-copy h1,
  .sw-hero h1,
  .hero h1,
  .inner-hero h1 {
    font-size: clamp(34px, 9.2vw, 44px) !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .section-head h2,
  .cta h2,
  .image-caption h2,
  .section-title,
  .intro h2,
  .sw-intro-content h2,
  .display {
    font-size: clamp(32px, 8.5vw, 42px) !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .split h3,
  .feature h3,
  .hero-side h2,
  .process-step h3,
  .cyber-card h3,
  .service h4 {
    font-size: clamp(24px, 6.5vw, 30px) !important;
    overflow-wrap: anywhere;
  }

  .eyebrow,
  .kicker,
  .hero-side .mini-title,
  .compare-label {
    letter-spacing: 0.12em !important;
    max-width: 100%;
  }

  .eyebrow {
    flex-wrap: wrap;
  }
  .eyebrow:before {
    width: 24px !important;
    flex-shrink: 0;
  }

  .hero-layout,
  .section-grid,
  .split,
  .feature-list,
  .metrics,
  .process-grid,
  .footer-grid,
  .nav-shell,
  .hero-shell {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .cta-inner {
    min-width: 0 !important;
  }

  .hero-layout,
  .section-grid,
  .split,
  .metrics,
  .process-grid,
  .culture-grid,
  .career-team {
    grid-template-columns: 1fr !important;
  }

  .hero-side {
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding-left: 0 !important;
    padding-top: 28px !important;
    max-width: 100% !important;
  }

  .hero-lead,
  .lead,
  .body-copy {
    max-width: 100% !important;
  }

  .responsibility {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0;
  }

  .image-panel {
    min-height: 320px !important;
  }

  #leistungen .services-intro > .areoxa-glass-panel {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .sw-hero-bg:after {
    right: -4% !important;
    width: 55% !important;
  }

  .footer-grid {
    gap: 28px !important;
  }

  .actions,
  .cta-actions {
    flex-wrap: wrap !important;
  }

  .btn,
  .outline-btn,
  .btn.primary,
  .btn.ghost {
    max-width: 100%;
  }
}

@media (max-width: 1099px) {
  #leistungen .services-intro > .areoxa-glass-panel {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .portfolio {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 400px) {
  .page-hero h1,
  .legal-hero h1,
  .hero-copy h1,
  .sw-hero h1,
  .hero h1 {
    font-size: 32px !important;
  }
  .section-head h2,
  .cta h2,
  .section-title,
  .display {
    font-size: 30px !important;
  }
  .site-nav .brand-word {
    font-size: 20px !important;
  }
  .site-nav .brand,
  .nav .brand {
    min-width: 0 !important;
  }
}

/* Trust strip — equal columns on phones (Einfachheit under Sicherheit, etc.) */
@media (max-width: 760px) {
  .trust-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    padding: 0 22px !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
  }
  .trust-item {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 140px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-top: 0 !important;
    padding: 24px 16px !important;
  }
  .trust-item:nth-child(odd) {
    padding-left: 0 !important;
    padding-right: 16px !important;
  }
  .trust-item:nth-child(even) {
    padding-left: 16px !important;
    padding-right: 0 !important;
    border-right: 0 !important;
  }
  .trust-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  }
  .trust-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 22px !important;
    line-height: 1 !important;
    margin-bottom: 10px !important;
  }
  .trust-label {
    letter-spacing: 0.18em !important;
    overflow-wrap: anywhere !important;
  }
  .trust-text {
    max-width: none !important;
    overflow-wrap: anywhere !important;
  }
}

/* Unified site footer — same as homepage on every route */
.site-footer {
  background: #060e16 !important;
  color: #fff !important;
  padding: 80px max(42px, calc((100% - var(--max, 1390px)) / 2 + 42px)) 25px !important;
  margin-top: 0 !important;
}
.site-footer .footer-grid,
.footer-grid {
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 40px !important;
  padding-bottom: 65px !important;
}
.site-footer .footer-brand,
.footer-brand {
  font-size: 28px !important;
  letter-spacing: 0.22em !important;
  font-weight: 300 !important;
}
.site-footer .footer-brand span,
.footer-brand span {
  color: #b9a58e !important;
}
.site-footer .footer-logo,
.footer-brand .footer-logo {
  display: block !important;
  height: 44px !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
.site-footer p {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 14px !important;
  max-width: none !important;
  line-height: 1.6 !important;
}
.site-footer .footer-grid > div,
.footer-grid > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
}
.site-footer .footer-label,
.footer-label {
  display: block !important;
  font-size: 9px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #b9a58e !important;
  margin-bottom: 8px !important;
}
.site-footer a,
.footer-grid a {
  display: block !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0 !important;
}
.site-footer .footer-note,
.footer-note {
  font-size: 10px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  margin-top: 10px !important;
}
.site-footer .footer-bottom,
.footer-bottom {
  max-width: none !important;
  margin: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  padding-top: 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  color: rgba(255, 255, 255, 0.38) !important;
  font-size: 9px !important;
  letter-spacing: 0.06em !important;
}
.site-footer .footer-bottom span:last-child,
.footer-bottom span:last-child {
  display: flex !important;
  gap: 20px !important;
}
.site-footer .footer-bottom a,
.footer-bottom a {
  display: inline !important;
  margin: 0 !important;
  font-size: 9px !important;
  color: rgba(255, 255, 255, 0.38) !important;
}
.site-footer .footer-bottom a:hover,
.footer-bottom a:hover {
  color: #fff !important;
}

@media (max-width: 1000px) {
  .site-footer .footer-grid,
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr !important;
  }
  .site-footer .footer-grid > div:last-child,
  .footer-grid > div:last-child {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 60px 22px 24px !important;
  }
  .site-footer .footer-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    padding-bottom: 40px !important;
  }
  .site-footer .footer-grid > div:first-child,
  .footer-grid > div:first-child {
    grid-column: 1 / -1 !important;
  }
  .site-footer .footer-grid > div:last-child,
  .footer-grid > div:last-child {
    display: flex !important;
  }
  .site-footer .footer-bottom,
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

