:root {
  --hniv-green: #8bc920;
  --hniv-green-dark: #6eaa08;
  --hniv-navy: #10243a;
  --hniv-navy-soft: #19344f;
  --hniv-text: #15253a;
  --hniv-muted: #687487;
  --hniv-line: #dce3e9;
  --hniv-soft: #f4f7f8;
  --hniv-white: #fff;
  --hniv-shadow: 0 18px 45px rgba(16, 36, 58, 0.12);
}

.hniv-container,
.hniv-container * {
  box-sizing: border-box;
}

.hniv-container {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

.hniv-home-feed[hidden] {
  display: none !important;
}

body.single-hniv_immobilie #hero {
  display: none !important;
}

.hniv-services-section {
  padding: 58px 0 54px;
  background: #fff;
  color: var(--hniv-text);
}

.hniv-services-header {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.hniv-services-header h2 {
  margin: 0;
  color: var(--hniv-navy);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hniv-services-header > p:last-child {
  margin: 11px 0 0;
  color: var(--hniv-muted);
  font-size: 15px;
  line-height: 1.6;
}

.hniv-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hniv-service-card {
  display: flex;
  min-width: 0;
  min-height: 190px;
  flex-direction: column;
  gap: 12px;
  align-items: start;
  padding: 19px;
  border: 1px solid #e1e7eb;
  border-radius: 14px;
  background: #fbfcfc;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hniv-service-card:hover {
  border-color: rgba(139, 201, 32, 0.65);
  box-shadow: 0 13px 32px rgba(16, 36, 58, 0.09);
  transform: translateY(-2px);
}

.hniv-service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: rgba(139, 201, 32, 0.14);
  color: var(--hniv-green-dark);
}

.hniv-service-icon svg {
  width: 25px;
  height: 25px;
}

.hniv-service-card h3 {
  margin: 0 0 6px;
  hyphens: auto;
  overflow-wrap: normal;
  color: var(--hniv-navy);
  font-size: 15px;
  line-height: 1.3;
}

.hniv-service-card p {
  margin: 0;
  color: var(--hniv-muted);
  font-size: 13px;
  line-height: 1.52;
}

.hniv-services-link {
  margin: 24px 0 0;
  text-align: center;
}

.hniv-services-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(16, 36, 58, 0.14);
  border-radius: 999px;
  color: var(--hniv-navy) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.hniv-services-link a:hover {
  border-color: var(--hniv-green);
  background: var(--hniv-green);
  color: #fff !important;
}

.hniv-services-mobile-hint {
  display: none;
}

.hniv-services-page {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding: 48px 0 78px;
  background: #f5f8f9;
  color: var(--hniv-text);
}

.hniv-services-page-header,
.hniv-subsection-header {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.hniv-services-page-header h2,
.hniv-subsection-header h2,
.hniv-services-cta h2 {
  margin: 0;
  color: var(--hniv-navy);
  font-size: clamp(28px, 3.2vw, 43px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hniv-services-page-header > p:last-child,
.hniv-subsection-header > p:last-child {
  margin: 12px 0 0;
  color: var(--hniv-muted);
  font-size: 16px;
  line-height: 1.65;
}

.hniv-services-detail-grid,
.hniv-process-grid,
.hniv-situations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hniv-service-detail-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid #e0e7eb;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 36, 58, 0.06);
  scroll-margin-top: 95px;
}

.hniv-service-detail-card h3,
.hniv-process-card h3,
.hniv-situations-grid h3 {
  margin: 16px 0 7px;
  overflow-wrap: anywhere;
  color: var(--hniv-navy);
  font-size: 18px;
  line-height: 1.3;
}

.hniv-service-detail-card p,
.hniv-process-card p,
.hniv-situations-grid p {
  margin: 0;
  color: var(--hniv-muted);
  font-size: 14px;
  line-height: 1.62;
}

.hniv-process-section {
  margin-top: 70px;
  padding: 46px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(139, 201, 32, 0.15), transparent 32%),
    linear-gradient(145deg, #10243a, #18344f);
}

.hniv-process-section .hniv-subsection-header h2,
.hniv-process-section .hniv-subsection-header > p:last-child,
.hniv-process-section .hniv-eyebrow {
  color: #fff;
}

.hniv-process-card {
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.hniv-process-card > span {
  color: var(--hniv-green);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hniv-process-card h3,
.hniv-process-card p {
  color: #fff;
}

.hniv-process-card p {
  color: rgba(255, 255, 255, 0.74);
}

.hniv-situations-section {
  margin-top: 70px;
}

.hniv-situations-grid article {
  padding: 22px;
  border-left: 4px solid var(--hniv-green);
  border-radius: 0 13px 13px 0;
  background: #fff;
}

.hniv-situations-grid h3 {
  margin-top: 0;
}

.hniv-services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  margin-top: 70px;
  padding: 38px 42px;
  border: 1px solid rgba(139, 201, 32, 0.35);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--hniv-shadow);
}

.hniv-services-cta > div:first-child {
  max-width: 720px;
}

.hniv-services-cta h2 {
  font-size: clamp(27px, 3vw, 39px);
}

.hniv-services-cta > div:first-child > p:last-child {
  margin: 12px 0 0;
  color: var(--hniv-muted);
  font-size: 16px;
  line-height: 1.65;
}

.hniv-services-cta .hniv-cta-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.hniv-section {
  position: relative;
  overflow: hidden;
  padding: 68px 0 64px;
  background: linear-gradient(180deg, #f7f9fa 0%, #eef3f5 100%);
  color: var(--hniv-text);
}

.hniv-section--references {
  background:
    radial-gradient(circle at 10% 0%, rgba(139, 201, 32, 0.13), transparent 30%),
    linear-gradient(150deg, #10243a 0%, #18344f 100%);
  color: #fff;
}

.hniv-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.hniv-section-header h2,
.hniv-archive-header h2,
.hniv-single h1,
.hniv-single h2 {
  margin: 0;
  color: var(--hniv-navy);
  font-family: inherit;
  letter-spacing: -0.025em;
}

.hniv-section-header h2 {
  max-width: 760px;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.08;
}

.hniv-section--references .hniv-section-header h2,
.hniv-section--references .hniv-section-intro,
.hniv-section--references .hniv-eyebrow {
  color: #fff;
}

.hniv-eyebrow {
  margin: 0 0 9px;
  color: var(--hniv-green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hniv-section-intro {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--hniv-muted);
  font-size: 16px;
  line-height: 1.65;
}

.hniv-slider-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.hniv-slider-controls button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(16, 36, 58, 0.14);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 36, 58, 0.11);
  color: var(--hniv-navy);
  font-size: 23px;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.hniv-section--references .hniv-slider-controls button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
}

.hniv-slider-controls button:hover:not(:disabled) {
  background: var(--hniv-green);
  color: #fff;
  transform: translateY(-2px);
}

.hniv-slider-controls button:disabled {
  opacity: 0.32;
  cursor: default;
}

.hniv-slider {
  min-width: 0;
  outline: none;
}

.hniv-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 4px 22px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hniv-track::-webkit-scrollbar {
  display: none;
}

.hniv-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.hniv-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 58, 0.08);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--hniv-shadow);
  color: var(--hniv-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hniv-card:hover {
  box-shadow: 0 22px 55px rgba(16, 36, 58, 0.17);
  transform: translateY(-4px);
}

.hniv-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe8ec;
}

.hniv-card-image-wrap > a {
  display: block;
  height: 100%;
}

.hniv-card-image,
.hniv-card-placeholder {
  width: 100%;
  height: 100%;
}

.hniv-card-image {
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hniv-card:hover .hniv-card-image {
  transform: scale(1.035);
}

.hniv-card-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e6edef, #cad8de);
}

.hniv-card-placeholder span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 15px;
  background: var(--hniv-green);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.hniv-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--hniv-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.hniv-card-image-wrap > .hniv-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  box-shadow: 0 7px 22px rgba(16, 36, 58, 0.24);
}

.hniv-status--verfuegbar {
  background: var(--hniv-green);
}

.hniv-status--reserviert {
  background: #f0a429;
}

.hniv-status--in_vorbereitung {
  background: var(--hniv-navy);
}

.hniv-status--verkauft {
  background: #b35a4c;
}

.hniv-card--verkauft .hniv-card-image {
  filter: saturate(0.76) contrast(0.96);
}

.hniv-card-body {
  display: flex;
  min-height: 275px;
  flex: 1;
  flex-direction: column;
  padding: 23px 24px 22px;
}

.hniv-section--references .hniv-card-body {
  min-height: 215px;
}

.hniv-card-location {
  margin: 0 0 7px;
  color: var(--hniv-green-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.hniv-card-title {
  display: -webkit-box;
  min-height: 2.72em;
  margin: 0;
  overflow: hidden;
  color: var(--hniv-navy);
  font-size: 21px;
  font-weight: 760;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hniv-card-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.hniv-card-type,
.hniv-card-facts,
.hniv-card-summary {
  margin: 10px 0 0;
  color: var(--hniv-muted);
  font-size: 14px;
  line-height: 1.55;
}

.hniv-card-type {
  color: var(--hniv-navy-soft);
  font-weight: 700;
}

.hniv-card-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hniv-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}

.hniv-card-price {
  color: var(--hniv-green-dark);
  font-size: 21px;
  line-height: 1.2;
}

.hniv-card-link {
  color: var(--hniv-navy) !important;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
  white-space: nowrap;
}

.hniv-card-link span {
  color: var(--hniv-green-dark);
  font-size: 18px;
}

.hniv-card-sold {
  color: #a34e43;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hniv-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  gap: 8px;
  margin-top: 2px;
}

.hniv-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd4da;
  cursor: pointer;
  transition: width 0.18s ease, background-color 0.18s ease;
}

.hniv-dots button.is-active {
  width: 27px;
  background: var(--hniv-green);
}

.hniv-section--references .hniv-dots button {
  background: rgba(255, 255, 255, 0.32);
}

.hniv-section--references .hniv-dots button.is-active {
  background: var(--hniv-green);
}

.hniv-view-all {
  margin: 23px 0 0;
  text-align: center;
}

.hniv-view-all a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid rgba(16, 36, 58, 0.14);
  border-radius: 999px;
  color: var(--hniv-navy) !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.hniv-section--references .hniv-view-all a {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff !important;
}

.hniv-view-all a:hover {
  background: var(--hniv-green);
  border-color: var(--hniv-green);
  color: #fff !important;
}

.hniv-archive {
  width: 100%;
  padding: 38px 0 70px;
  color: var(--hniv-text);
}

.hniv-archive-header {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.hniv-archive-header h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
}

.hniv-archive-header p {
  margin: 13px 0 0;
  color: var(--hniv-muted);
  font-size: 17px;
  line-height: 1.65;
}

.hniv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.hniv-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--hniv-line);
  border-radius: 16px;
  background: var(--hniv-soft);
  text-align: center;
}

.hniv-empty strong {
  color: var(--hniv-navy);
  font-size: 23px;
}

.hniv-empty p {
  color: var(--hniv-muted);
}

.hniv-empty a {
  color: var(--hniv-green-dark) !important;
  font-weight: 800;
}

.hniv-single {
  padding: 42px 0 90px;
  background: #f7f9fa;
  color: var(--hniv-text);
}

.hniv-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--hniv-muted);
  font-size: 13px;
}

.hniv-breadcrumb a {
  color: var(--hniv-navy) !important;
  text-decoration: none !important;
}

.hniv-single-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 34px;
}

.hniv-single h1 {
  max-width: 880px;
  font-size: clamp(33px, 4.2vw, 58px);
  line-height: 1.06;
}

.hniv-single-location {
  margin: 12px 0 0;
  color: var(--hniv-muted);
  font-size: 18px;
}

.hniv-single-status-box {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 11px;
}

.hniv-single-status-box strong {
  color: var(--hniv-green-dark);
  font-size: 30px;
}

.hniv-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
  margin-bottom: 42px;
}

.hniv-gallery-main {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: #dae4e8;
  cursor: zoom-in;
}

.hniv-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hniv-gallery-main span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 36, 58, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

.hniv-gallery-thumbs {
  display: grid;
  max-height: 640px;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.hniv-gallery-thumb {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 10px;
  background: #dae4e8;
  cursor: pointer;
}

.hniv-gallery-thumb.is-active {
  border-color: var(--hniv-green);
}

.hniv-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hniv-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 54px;
  align-items: start;
}

.hniv-lead {
  margin: 0 0 26px;
  color: var(--hniv-navy);
  font-size: 21px;
  font-weight: 550;
  line-height: 1.7;
}

.hniv-editor-content,
.hniv-copy-section {
  color: #3e4c5d;
  font-size: 17px;
  line-height: 1.78;
}

.hniv-copy-section {
  margin-top: 38px;
}

.hniv-copy-section h2,
.hniv-facts-card h2,
.hniv-sold-message h2,
.hniv-single-cta h2 {
  margin-bottom: 18px;
  font-size: 29px;
  line-height: 1.2;
}

.hniv-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hniv-check-list li {
  position: relative;
  padding-left: 24px;
}

.hniv-check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--hniv-green-dark);
  content: "✓";
  font-weight: 900;
}

.hniv-facts-card {
  position: sticky;
  top: 30px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--hniv-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--hniv-shadow);
}

.admin-bar .hniv-facts-card {
  top: 62px;
}

.hniv-facts-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid #edf0f2;
}

.hniv-facts-card span {
  color: var(--hniv-muted);
  font-size: 13px;
}

.hniv-facts-card strong {
  color: var(--hniv-navy);
  font-size: 14px;
  text-align: right;
}

.hniv-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--hniv-green);
  border-radius: 8px;
  background: var(--hniv-green);
  color: #fff !important;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.hniv-button:hover {
  border-color: var(--hniv-green-dark);
  background: var(--hniv-green-dark);
  color: #fff !important;
}

.hniv-button--secondary {
  border-color: var(--hniv-navy);
  background: transparent;
  color: var(--hniv-navy) !important;
}

.hniv-button--secondary:hover {
  border-color: var(--hniv-navy);
  background: var(--hniv-navy);
}

.hniv-facts-card .hniv-button {
  width: 100%;
  margin-top: 20px;
}

.hniv-single-cta,
.hniv-sold-message {
  margin-top: 68px;
  padding: 44px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--hniv-shadow);
  text-align: center;
}

.hniv-single-cta p:not(.hniv-eyebrow),
.hniv-sold-message p:not(.hniv-eyebrow) {
  max-width: 720px;
  margin: 0 auto;
  color: var(--hniv-muted);
  font-size: 17px;
  line-height: 1.7;
}

.hniv-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.hniv-lightbox[hidden] {
  display: none;
}

.hniv-lightbox {
  position: fixed;
  z-index: 1600000;
  inset: 0;
  display: grid;
  padding: 40px;
  place-items: center;
  background: rgba(4, 12, 22, 0.94);
}

.hniv-lightbox img {
  display: block;
  max-width: min(1400px, 96vw);
  max-height: 90vh;
  object-fit: contain;
}

.hniv-lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 31px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hniv-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hniv-services-detail-grid,
  .hniv-process-grid,
  .hniv-situations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hniv-process-section {
    padding: 36px 28px;
  }

  .hniv-services-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hniv-slide {
    flex-basis: calc((100% - 18px) / 2);
  }

  .hniv-track {
    gap: 18px;
  }

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

  .hniv-single-layout {
    grid-template-columns: 1fr;
  }

  .hniv-facts-card {
    position: static;
  }

  .hniv-gallery {
    grid-template-columns: 1fr;
  }

  .hniv-gallery-thumbs {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }

  .hniv-gallery-thumb {
    flex: 0 0 120px;
  }
}

@media (max-width: 640px) {
  .hniv-container {
    width: min(100% - 24px, 1220px);
  }

  .hniv-section {
    padding: 45px 0 42px;
  }

  .hniv-services-section {
    padding: 43px 0 38px;
    overflow: hidden;
  }

  .hniv-services-header {
    margin-bottom: 20px;
  }

  .hniv-services-header h2 {
    font-size: 27px;
  }

  .hniv-services-header > p:last-child {
    font-size: 13px;
  }

  .hniv-services-grid {
    display: flex;
    gap: 12px;
    margin-right: -12px;
    overflow-x: auto;
    padding: 2px 12px 12px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hniv-services-grid::-webkit-scrollbar {
    display: none;
  }

  .hniv-service-card {
    flex: 0 0 calc((100% - 12px) / 2);
    display: block;
    min-height: 190px;
    padding: 14px 12px;
    scroll-snap-align: start;
  }

  .hniv-service-icon {
    width: 39px;
    height: 39px;
    margin-bottom: 12px;
  }

  .hniv-service-icon svg {
    width: 22px;
    height: 22px;
  }

  .hniv-service-card h3 {
    font-size: 13px;
  }

  .hniv-service-card p {
    font-size: 11px;
  }

  .hniv-services-mobile-hint {
    display: block;
    margin: 2px 0 0;
    color: var(--hniv-muted);
    font-size: 10px;
    text-align: center;
  }

  .hniv-services-link {
    margin-top: 15px;
  }

  .hniv-services-page {
    padding: 34px 0 58px;
  }

  .hniv-services-page-header,
  .hniv-subsection-header {
    margin-bottom: 23px;
  }

  .hniv-services-page-header h2,
  .hniv-subsection-header h2,
  .hniv-services-cta h2 {
    font-size: 27px;
  }

  .hniv-services-page-header > p:last-child,
  .hniv-subsection-header > p:last-child {
    font-size: 14px;
  }

  .hniv-services-detail-grid,
  .hniv-process-grid,
  .hniv-situations-grid {
    grid-template-columns: 1fr;
  }

  .hniv-service-detail-card,
  .hniv-process-card,
  .hniv-situations-grid article {
    padding: 19px;
  }

  .hniv-process-section {
    margin-top: 50px;
    padding: 30px 16px;
    border-radius: 16px;
  }

  .hniv-situations-section,
  .hniv-services-cta {
    margin-top: 50px;
  }

  .hniv-services-cta {
    gap: 26px;
    padding: 28px 20px;
  }

  .hniv-services-cta .hniv-cta-actions,
  .hniv-services-cta .hniv-button {
    width: 100%;
  }

  .hniv-section-header {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .hniv-section-header h2 {
    font-size: 27px;
  }

  .hniv-section-intro {
    font-size: 14px;
  }

  .hniv-slider-controls {
    display: none;
  }

  .hniv-track {
    gap: 12px;
    margin-right: -12px;
    padding: 3px 12px 18px 0;
  }

  .hniv-slide {
    flex-basis: calc((100% - 12px) / 2);
  }

  .hniv-card {
    border-radius: 11px;
  }

  .hniv-card-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .hniv-card-image-wrap > .hniv-status {
    top: 8px;
    left: 8px;
  }

  .hniv-status {
    padding: 5px 8px;
    font-size: 8px;
  }

  .hniv-card-body {
    min-height: 205px;
    padding: 15px 13px 14px;
  }

  .hniv-section--references .hniv-card-body {
    min-height: 180px;
  }

  .hniv-card-location {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .hniv-card-title {
    min-height: 3.7em;
    font-size: 15px;
    line-height: 1.25;
    -webkit-line-clamp: 3;
  }

  .hniv-card-type,
  .hniv-card-facts {
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.4;
  }

  .hniv-card-summary {
    display: none;
  }

  .hniv-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 13px;
  }

  .hniv-card-price {
    font-size: 16px;
  }

  .hniv-card-link,
  .hniv-card-sold {
    font-size: 9px;
    white-space: normal;
  }

  .hniv-view-all {
    margin-top: 15px;
  }

  .hniv-view-all a {
    padding: 11px 16px;
    font-size: 12px;
  }

  .hniv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .hniv-archive {
    padding: 28px 0 48px;
  }

  .hniv-archive-header {
    margin-bottom: 24px;
  }

  .hniv-archive-header h2 {
    font-size: 28px;
  }

  .hniv-archive-header p {
    font-size: 14px;
  }

  .hniv-single {
    padding: 28px 0 65px;
  }

  .hniv-single-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hniv-single h1 {
    font-size: 34px;
  }

  .hniv-single-status-box {
    align-items: flex-start;
  }

  .hniv-gallery-main {
    aspect-ratio: 4 / 3;
  }

  .hniv-gallery-thumb {
    flex-basis: 90px;
  }

  .hniv-check-list {
    grid-template-columns: 1fr;
  }

  .hniv-single-cta,
  .hniv-sold-message {
    margin-top: 48px;
    padding: 30px 20px;
  }

  .hniv-lightbox {
    padding: 20px 10px;
  }
}


/* Einheitlicher Widerrufsbereich für alle Immobilien-Inserate */
.hniv-editor-content details.wp-block-details {
  margin: 32px 0;
  border: 0;
}

.hniv-editor-content details.wp-block-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--hniv-green);
  color: var(--hniv-navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 36, 58, 0.14);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  list-style: none;
}

.hniv-editor-content details.wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.hniv-editor-content details.wp-block-details > summary::marker {
  content: "";
}

.hniv-editor-content details.wp-block-details > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.hniv-editor-content details.wp-block-details[open] > summary::after {
  content: "−";
}

.hniv-editor-content details.wp-block-details > summary:hover {
  background: var(--hniv-green-dark);
  color: var(--hniv-white);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16, 36, 58, 0.18);
}

.hniv-editor-content details.wp-block-details > summary:focus-visible {
  outline: 3px solid rgba(139, 201, 32, 0.35);
  outline-offset: 3px;
}

.hniv-editor-content details.wp-block-details[open] {
  padding-bottom: 24px;
  border-radius: 12px;
  background: var(--hniv-soft);
}

.hniv-editor-content details.wp-block-details[open] > summary {
  margin-bottom: 24px;
  border-radius: 12px 12px 0 0;
}

.hniv-editor-content details.wp-block-details > :not(summary) {
  margin-right: 24px;
  margin-left: 24px;
}

@media (max-width: 680px) {
  .hniv-editor-content details.wp-block-details {
    margin: 24px 0;
  }

  .hniv-editor-content details.wp-block-details > summary {
    gap: 12px;
    padding: 14px 16px;
    font-size: 13px;
  }

  .hniv-editor-content details.wp-block-details > summary::after {
    font-size: 21px;
  }

  .hniv-editor-content details.wp-block-details > :not(summary) {
    margin-right: 16px;
    margin-left: 16px;
  }
}
