:root {
  --hnrf-navy: #0d1d31;
  --hnrf-navy-soft: #172d43;
  --hnrf-green: #8bc920;
  --hnrf-orange: #f5aa3e;
  --hnrf-white: #ffffff;
  --hnrf-text: #142035;
  --hnrf-muted: #5e6877;
  --hnrf-line: rgba(255, 255, 255, 0.16);
}

.wp-site-blocks > .wp-block-kubio-footer {
  display: none !important;
}

body.home #contact-1 {
  display: none !important;
}

body.hnrf-region-location .wp-block-kubio-header > #hero {
  display: none !important;
}

body.hnrf-region-location .wp-site-blocks > .wp-block-kubio-section:has(.hnrf-region-page) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hnrf-footer,
.hnrf-footer *,
.hnrf-region-page,
.hnrf-region-page *,
.hnrf-region-hub,
.hnrf-region-hub * {
  box-sizing: border-box;
}

.hnrf-footer {
  position: relative;
  width: 100%;
  color: rgba(255, 255, 255, 0.78);
  background-color: var(--hnrf-navy);
  background-image: url("https://heimatnah-immobilien.de/wp-content/uploads/2026/08/e808fc42-09d9-479a-8a4f-daf579ddd895.png");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hnrf-footer__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 29, 49, 0.97), rgba(13, 29, 49, 0.91) 50%, rgba(10, 34, 54, 0.96));
}

.hnrf-footer__inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  padding: 76px 0 26px;
}

.hnrf-footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr 1.15fr;
  gap: clamp(36px, 5vw, 82px);
  align-items: start;
}

.hnrf-footer h2 {
  margin: 4px 0 20px;
  color: var(--hnrf-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hnrf-footer p,
.hnrf-footer li,
.hnrf-footer address,
.hnrf-footer a {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
}

.hnrf-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.hnrf-footer a:hover,
.hnrf-footer a:focus-visible {
  color: var(--hnrf-white);
}

.hnrf-footer__logo {
  display: inline-flex;
  width: 176px;
  padding: 10px 14px;
  border-radius: 11px;
  background: #fff;
}

.hnrf-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.hnrf-footer__brand > p {
  max-width: 310px;
  margin: 24px 0 26px;
}

.hnrf-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hnrf-footer__nav li,
.hnrf-footer__services li {
  margin: 0 0 7px;
}

.hnrf-footer__nav a,
.hnrf-footer__services a {
  display: inline-block;
}

.hnrf-footer__nav a:hover,
.hnrf-footer__services a:hover {
  transform: translateX(3px);
}

.hnrf-footer__regions-title {
  margin-top: 25px !important;
}

.hnrf-socials {
  display: flex;
  gap: 10px;
}

.hnrf-socials a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.hnrf-socials a:hover {
  border-color: var(--hnrf-green);
  background: var(--hnrf-green);
  color: var(--hnrf-navy);
}

.hnrf-footer__contact ul {
  display: grid;
  gap: 14px;
}

.hnrf-footer__contact li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.hnrf-footer__contact li > span {
  display: inline-flex;
  margin-top: 2px;
  color: var(--hnrf-green);
}

.hnrf-footer__contact svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hnrf-footer__contact address {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.hnrf-footer__trust {
  margin-top: 24px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.55;
}

.hnrf-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-top: 48px;
  padding-top: 23px;
  border-top: 1px solid rgba(139, 201, 32, 0.7);
}

.hnrf-footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.hnrf-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hnrf-footer__bottom a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.hnrf-region-page {
  width: 100%;
  color: var(--hnrf-text);
  background: #fff;
}

.hnrf-region-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(90px, 11vw, 150px) 28px;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(13, 29, 49, 0.94), rgba(13, 29, 49, 0.77)), url("https://heimatnah-immobilien.de/wp-content/uploads/2026/08/e808fc42-09d9-479a-8a4f-daf579ddd895.png");
  background-position: center;
  background-size: cover;
}

.hnrf-region-hero__inner,
.hnrf-region-main,
.hnrf-region-cta,
.hnrf-region-hub__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hnrf-eyebrow {
  margin: 0 0 15px;
  color: var(--hnrf-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hnrf-region-page .hnrf-eyebrow {
  color: var(--hnrf-green) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  line-height: 1.4 !important;
}

.hnrf-region-page .hnrf-eyebrow--dark {
  color: #6fa311 !important;
}

.hnrf-eyebrow--dark {
  color: #6fa311;
}

.hnrf-region-hero h1 {
  max-width: 950px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hnrf-region-lead {
  max-width: 800px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hnrf-region-page .hnrf-region-lead {
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: clamp(17px, 2vw, 21px) !important;
  line-height: 1.65 !important;
}

.hnrf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hnrf-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.hnrf-region-page .hnrf-btn {
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.hnrf-btn:hover {
  transform: translateY(-2px);
}

.hnrf-btn--primary {
  background: var(--hnrf-green);
  color: var(--hnrf-navy);
}

.hnrf-region-page .hnrf-btn--primary {
  color: var(--hnrf-navy) !important;
}

.hnrf-btn--ghost {
  border-color: rgba(255, 255, 255, 0.68);
  color: #fff;
}

.hnrf-region-page .hnrf-btn--ghost {
  color: #fff !important;
}

.hnrf-region-main {
  padding: clamp(70px, 9vw, 116px) 28px;
}

.hnrf-region-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: start;
}

.hnrf-region-page h2,
.hnrf-region-hub h2 {
  margin: 0 0 23px;
  color: var(--hnrf-text);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.hnrf-region-page h3 {
  color: var(--hnrf-text);
}

.hnrf-region-copy p,
.hnrf-faq p,
.hnrf-process p,
.hnrf-region-hub__lead {
  color: var(--hnrf-muted);
  font-size: 16px;
  line-height: 1.78;
}

.hnrf-local-card {
  padding: 34px;
  border: 1px solid #e6ebf0;
  border-top: 5px solid var(--hnrf-green);
  border-radius: 18px;
  background: #f7f9f5;
  box-shadow: 0 18px 55px rgba(13, 29, 49, 0.08);
}

.hnrf-local-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--hnrf-navy);
  color: #fff;
  font-size: 25px;
}

.hnrf-local-card h3 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.25;
}

.hnrf-region-page .hnrf-local-card h3 {
  font-weight: 750 !important;
}

.hnrf-local-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hnrf-local-card li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 24px;
  color: var(--hnrf-muted);
  font-size: 14px;
  line-height: 1.55;
}

.hnrf-local-card li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--hnrf-green);
  content: "✓";
  font-weight: 900;
}

.hnrf-process,
.hnrf-faq,
.hnrf-region-links {
  margin-top: clamp(74px, 10vw, 120px);
}

.hnrf-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.hnrf-process-grid article {
  min-height: 245px;
  padding: 30px 25px;
  border: 1px solid #e8edf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(13, 29, 49, 0.07);
}

.hnrf-process-grid span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--hnrf-green);
  font-size: 14px;
  font-weight: 900;
}

.hnrf-process-grid h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.25;
}

.hnrf-process-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.hnrf-faq {
  max-width: 860px;
}

.hnrf-faq details {
  margin: 0;
  border-top: 1px solid #dfe5ea;
}

.hnrf-faq details:last-child {
  border-bottom: 1px solid #dfe5ea;
}

.hnrf-faq summary {
  position: relative;
  padding: 22px 52px 22px 0;
  color: var(--hnrf-text);
  cursor: pointer;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  list-style: none;
}

.hnrf-faq summary::-webkit-details-marker {
  display: none;
}

.hnrf-faq summary::after {
  position: absolute;
  top: 17px;
  right: 0;
  color: var(--hnrf-green);
  content: "+";
  font-size: 28px;
  font-weight: 400;
}

.hnrf-faq details[open] summary::after {
  content: "−";
}

.hnrf-faq details p {
  margin: -5px 0 22px;
}

.hnrf-region-links {
  padding: 34px;
  border-radius: 18px;
  background: #f1f5ed;
}

.hnrf-region-links h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.hnrf-region-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hnrf-region-links a {
  display: inline-flex;
  padding: 9px 15px;
  border: 1px solid #d5dfcc;
  border-radius: 999px;
  background: #fff;
  color: var(--hnrf-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hnrf-region-cta {
  display: flex;
  width: min(1180px, calc(100% - 56px));
  align-items: center;
  justify-content: space-between;
  gap: 46px;
  margin: 0 auto clamp(70px, 8vw, 110px);
  padding: clamp(36px, 5vw, 58px);
  border-radius: 22px;
  background: var(--hnrf-navy);
  color: #fff;
}

.hnrf-region-cta h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 43px);
}

.hnrf-region-cta p:not(.hnrf-eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

.hnrf-region-cta .hnrf-btn {
  flex: 0 0 auto;
}

.hnrf-region-hub {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(70px, 8vw, 110px) 28px;
  background: #f6f8f4;
}

.hnrf-region-hub__lead {
  max-width: 760px;
  margin: -7px 0 38px;
}

.hnrf-region-hub__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hnrf-region-hub__grid a {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 16px;
  background: var(--hnrf-navy);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hnrf-region-hub__grid a:hover {
  transform: translateY(-4px);
  background: var(--hnrf-navy-soft);
}

.hnrf-region-hub__grid span {
  color: var(--hnrf-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hnrf-region-hub__grid strong {
  margin-top: 5px;
  font-size: 23px;
}

.hnrf-region-hub__grid em {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-style: normal;
}

@media (max-width: 1080px) {
  .hnrf-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hnrf-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hnrf-region-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hnrf-footer__inner {
    width: min(100% - 36px, 560px);
    padding-top: 54px;
  }

  .hnrf-footer__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hnrf-footer__brand > p {
    max-width: none;
  }

  .hnrf-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 40px;
  }

  .hnrf-footer__bottom nav {
    gap: 16px;
  }

  .hnrf-region-hero {
    padding: 74px 20px;
  }

  .hnrf-region-main {
    padding: 64px 20px;
  }

  .hnrf-region-copy {
    grid-template-columns: 1fr;
  }

  .hnrf-process-grid,
  .hnrf-region-hub__grid {
    grid-template-columns: 1fr;
  }

  .hnrf-process-grid article {
    min-height: 0;
  }

  .hnrf-region-cta {
    width: calc(100% - 36px);
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 26px;
  }

  .hnrf-region-cta .hnrf-btn {
    width: 100%;
  }

  .hnrf-region-hub {
    padding: 64px 20px;
  }

  .hnrf-region-hub__grid a {
    min-height: 140px;
  }
}
