/* ─── EstateHome — Landing-Page Sections ─── */

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  /* Nav is sticky (in flow) now, so no top clearance needed — just breathing. */
  padding: 32px 64px 64px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w); margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 160px);
}
#hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(17,17,17,0.035) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clay-light), transparent);
}
.hero-h1 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-h1 em {
  font-style: italic;
  color: var(--clay);
}
.hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fog);
  max-width: 480px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-cta {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.hero-trust {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 36px;
  animation: fadeUp 0.6s 0.4s ease both;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--fog); font-weight: 500;
}
.trust-dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}

/* ─── HERO IMAGE + FLOATS ─── */
.hero-visual {
  animation: fadeRight 1.2s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
  position: relative;
}
.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-dark);
  box-shadow: 0 24px 80px rgba(17,17,17,0.14), 0 4px 16px rgba(17,17,17,0.06);
  border: 1px solid rgba(17,17,17,0.1);
}
.hero-image img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}

.floating-badge {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(17,17,17,0.12);
  border: 1px solid rgba(17,17,17,0.15);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.float-stack {
  position: absolute;
  top: -18px;
  right: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.float-stack .floating-badge {
  position: relative;
  top: auto; right: auto; bottom: auto; left: auto;
  animation: notifSlideIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.float-stack .s1 { animation-delay: 0.7s; }
.float-stack .s2 { animation-delay: 1.7s; }
.float-stack .s3 { animation-delay: 2.7s; }

@keyframes notifSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
.fb-icon { font-size: 20px; }
.fb-text { font-weight: 600; color: var(--ink); }
.fb-sub { font-size: 11px; color: var(--fog); margin-top: 1px; }

@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeRight { from{opacity:0;transform:translateX(32px)} to{opacity:1;transform:translateX(0)} }

/* ─── SECTION BASE ─── */
section { padding: 80px max(64px, calc((100% - var(--max-w)) / 2)); }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}
.section-h2 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 18px;
}
.section-sub {
  font-size: 15px; line-height: 1.7;
  color: var(--fog);
  max-width: 560px;
}

/* ─── SOLUTION ─── */
#solution { background: var(--white); }
.solution-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; margin-top: 64px;
}
.solution-services {
  display: flex; flex-direction: column; gap: 20px;
}
.service-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px;
  background: var(--sand);
  border-radius: var(--radius);
  border: 1px solid var(--sand-dark);
  transition: all 0.3s;
  cursor: default;
}
.service-item:hover {
  border-color: var(--clay);
  transform: translateX(6px);
  box-shadow: -4px 0 0 var(--clay), 0 4px 20px rgba(17,17,17,0.12);
}
.service-num {
  width: 36px; height: 36px;
  background: var(--clay);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.service-title { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.service-desc { font-size: 14px; color: var(--fog); line-height: 1.6; }

.solution-image {
  position: relative;
}
.solution-visual {
  background: linear-gradient(135deg, #292524, #1C1917);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: white;
  position: relative; overflow: hidden;
}
.solution-visual::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(180,116,79,0.3) 0%, transparent 70%);
}
.sv-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.sv-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sv-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.8);
}
.sv-list li::before { content: '✓'; color: var(--accent-light); font-weight: 700; }

/* ─── TRANSPARENCY ─── */
#transparency {
  background: var(--ink);
  color: var(--sand);
}
#transparency .section-h2 { color: var(--sand); }
#transparency .section-sub { color: rgba(255,255,255,0.6); max-width: 520px; }

.transp-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; margin-top: 64px;
}
.transp-features { display: flex; flex-direction: column; gap: 28px; }
.transp-feat {
  display: flex; gap: 18px; align-items: flex-start;
}
.transp-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.transp-feat-title { font-size: 16px; font-weight: 700; color: var(--sand); margin-bottom: 5px; }
.transp-feat-desc { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* Phone-Mockup — modernes Owner-Portal-UI (rechte Spalte des Transparenz-Bereichs) */
.transp-phone-wrap {
  display: flex; justify-content: center; align-items: center;
  padding: 16px 0;
}
.app-phone {
  width: min(290px, 100%);
  aspect-ratio: 9 / 19.5;
  background: #0E1014;
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 0 0 1.5px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.app-notch {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 4;
}
.app-frame {
  width: 100%; height: 100%;
  background: var(--white);
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.app-statusbar {
  flex: 0 0 36px;
  padding: 12px 22px 4px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.app-statusbar-right {
  display: flex; align-items: center; gap: 6px;
  color: var(--ink);
}
.app-statusbar-right svg {
  width: 14px; height: 14px;
}
.app-statusbar-right .app-battery {
  width: 24px; height: 11px;
}
.app-screens {
  flex: 1 1 auto;
  width: 300%;
  display: flex;
  overflow: hidden;
  animation: appCycle 16s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: transform;
}
.app-screen {
  width: calc(100% / 3);
  display: flex; flex-direction: column;
}
.app-header {
  padding: 10px 22px 14px;
  border-bottom: 1px solid rgba(17,17,17,0.06);
}
.app-brand {
  font-size: 9px;
  font-weight: 600;
  color: var(--fog);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.app-title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.app-rows {
  flex: 1 1 auto;
  padding: 4px 14px;
  display: flex; flex-direction: column;
}
.app-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(17,17,17,0.05);
}
.app-row:last-child { border-bottom: 0; }
.app-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(17,17,17,0.10);
  color: var(--clay);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-icon svg { width: 17px; height: 17px; }
.app-row-text { flex: 1; min-width: 0; }
.app-row-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-row-meta {
  font-size: 10.5px;
  color: var(--fog);
  margin-top: 2px;
  font-weight: 500;
}
.app-status {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 4px;
}
.app-status-done {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(180,116,79,0.12);
}
.app-status-pending {
  background: var(--clay);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.14);
}
.app-tabbar {
  flex: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(17,17,17,0.06);
  background: var(--white);
  padding: 8px 4px 4px;
}
.app-tab {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: var(--fog);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.app-tab svg { width: 18px; height: 18px; }
.app-tab:nth-child(1) { animation: tabA 16s linear infinite; }
.app-tab:nth-child(2) { animation: tabB 16s linear infinite; }
.app-tab:nth-child(3) { animation: tabC 16s linear infinite; }
.app-homebar {
  flex: 0 0 12px;
  display: flex; align-items: center; justify-content: center;
}
.app-homebar::after {
  content: '';
  width: 96px; height: 4px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.85;
}

@keyframes appCycle {
  0%, 28%   { transform: translateX(0); }
  33%, 61%  { transform: translateX(-33.333%); }
  66%, 94%  { transform: translateX(-66.666%); }
  100%      { transform: translateX(0); }
}
@keyframes tabA {
  0%, 28%, 100% { color: var(--clay); }
  33%, 94%      { color: var(--fog); }
}
@keyframes tabB {
  0%, 28%       { color: var(--fog); }
  33%, 61%      { color: var(--clay); }
  66%, 100%     { color: var(--fog); }
}
@keyframes tabC {
  0%, 61%       { color: var(--fog); }
  66%, 94%      { color: var(--clay); }
  100%          { color: var(--fog); }
}
@media (prefers-reduced-motion: reduce) {
  .app-screens, .app-tab { animation: none; }
  .app-tab:nth-child(1) { color: var(--clay); }
  .hero-visual, .hero-image img, .float-stack .floating-badge { animation: none; }
}

/* ─── CONTACT FORM (HubSpot embed + Calendly alt CTA) ─── */
#kontakt {
  background: var(--white);
  padding: 80px max(64px, calc((100% - var(--max-w)) / 2));
}
.kontakt-inner {
  max-width: 760px; margin: 0 auto;
}
.kontakt-header { text-align: center; margin-bottom: 48px; }
.kontakt-header .section-sub { margin: 0 auto; }

.contact-form-wrap {
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 520px; /* Outer buffer until the HubSpot form has rendered */
}
/* CLS protection: reserve space for the HubSpot iframe itself so it
   doesn't shift content when it loads. The frame fills the wrap; the
   wrap's padding already accounts for the visual gutter. */
.hs-form-frame {
  display: block;
  min-height: 456px;
  width: 100%;
}
.kontakt-alt {
  margin-top: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.kontakt-alt-sep {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fog);
  padding: 0 16px;
}
.kontakt-alt-sep::before,
.kontakt-alt-sep::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: rgba(17,17,17,0.25);
  vertical-align: middle;
  margin: 0 8px;
}
.kontakt-alt-note {
  font-size: 12px;
  color: var(--fog);
  margin: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #hero { padding: 100px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  section { padding: 72px 24px; }
  .solution-layout { grid-template-columns: 1fr; gap: 40px; }
  .transp-layout { grid-template-columns: 1fr; gap: 40px; }
  #kontakt { padding: 72px 24px; }
  .contact-form-wrap { padding: 20px; min-height: 480px; }
}

/* ─── HOME (Brand-Hub) ─── */
/* Used on the locale-index brand pages: /de/, /en/, /hr/.
   Property-management uses the older hero/solution/transparency
   classes above and is untouched by anything here. */

/* Hero — typographic, single column, no image. Reuses the #hero
   base (min-height 100vh, sand gradient corner) and overrides the
   inner grid. A soft multi-stack gradient mesh sits on top of the
   sand surface so the section feels lit rather than flat. */
#hero.home-hero {
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 1100px 700px at 88% 12%, rgba(17,17,17,0.035) 0%, transparent 65%),
    radial-gradient(ellipse 900px 600px at 12% 88%, rgba(17,17,17,0.025) 0%, transparent 70%),
    radial-gradient(ellipse 1400px 600px at 50% 50%, rgba(255,255,255,0.4) 0%, transparent 75%),
    var(--sand);
}
.home-hero-inner {
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.1s ease both;
}
.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 24px;
}
.home-hero-eyebrow::before,
.home-hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--clay);
  opacity: 0.4;
}
.home-hero-h1 {
  font-family: var(--font-sans);
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.home-hero-lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 14px;
}
.home-hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fog);
  max-width: 640px;
  margin: 0 auto 36px;
}
.home-hero-cta {
  display: flex;
  justify-content: center;
}

/* Services — numbered list on white. Class-scoped so the audience
   landings (#solution) and the homepage card section (#audiences) can
   reuse it alongside the original #services block. */
.home-services {
  background: var(--white);
  text-align: center;
}
.home-services .section-h2 {
  margin-bottom: 48px;
}
.home-service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: left;
}
.home-service-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--sand);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17,17,17,0.12);
}
.home-service-num {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--clay);
  line-height: 1;
  min-width: 28px;
}
.home-service-body { min-width: 0; }
.home-service-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.home-service-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fog);
}
.home-services-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--fog);
}
.home-services-note a {
  color: var(--clay);
  font-weight: 600;
  text-decoration: none;
}
.home-services-note a:hover { text-decoration: underline; }

/* Audience cards — linked variant of the service tiles, used by the
   homepage "Für Mieter" section. */
.home-audience-card {
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.home-audience-card:hover {
  border-color: var(--clay);
  transform: translateY(-2px);
}
.home-audience-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clay);
}

/* Region — text section on sand. */
#region.home-region {
  background: var(--sand);
}
.home-region-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.home-region-p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.home-region-p:last-child { margin-bottom: 0; }

/* Tech — How-it-works: headline + subhead on the left, timeline +
   compact photo strip on the right. Section uses the same sand
   surface as the hero so the page stays on a single warm canvas. */
#tech.home-tech {
  background: var(--ink);
}
.home-tech .section-label {
  color: var(--clay-light, #D69468);
}
.home-tech .section-h2 {
  color: var(--sand);
}
.home-tech-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  justify-items: center;
}
.home-tech-copy {
  max-width: 620px;
  text-align: center;
}
.home-tech-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0 auto;
  max-width: 520px;
}

/* Card is an invisible wrapper that stacks the timeline and the
   photo strip, full width within the section. */
.home-tech-card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 100%;
}

/* Horizontal process timeline — seven steps spanning the section
   width. Each step has its icon tile on top of a horizontal rail,
   with the label + monospace time stacked beneath. The rail grows
   left-to-right between consecutive icons as steps enter view. */
.home-tech-timeline {
  list-style: none;
  padding: 8px 0 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: var(--max-w);
  width: 100%;
}
.home-tech-step {
  position: relative;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.home-tech-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.home-tech-step.is-visible .home-tech-icon {
  opacity: 1;
  transform: scale(1);
}
.home-tech-step--final .home-tech-icon {
  background: rgba(180,116,79,0.16);
  border-color: rgba(180,116,79,0.45);
}

.home-tech-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 92%;
}
.home-tech-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--sand);
  line-height: 1.4;
}
.home-tech-time {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Horizontal rail: drawn from this icon's right edge to within the
   next column's left padding so consecutive segments touch through
   the icon-tile centers. Tile center at top: 25 (52/2 - 1); tile
   right edge at left: 56 (52 + 4 px breathing room). */
.home-tech-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 56px;
  right: 12px;
  top: 25px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
  z-index: 1;
}
.home-tech-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 56px;
  right: 12px;
  top: 25px;
  height: 2px;
  background: linear-gradient(90deg, var(--clay) 0%, rgba(17,17,17,0.55) 100%);
  border-radius: 1px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s ease 0.1s;
  z-index: 1;
}
.home-tech-step.is-visible:not(:last-child)::after {
  transform: scaleX(1);
}
.home-tech-step:has(+ .home-tech-step--final):not(:last-child)::after {
  background: linear-gradient(90deg, var(--clay) 0%, var(--accent) 100%);
}

/* Photo previews — small thumbnails of the existing hero image, three
   crops via background-position, centered under the timeline. */
.home-tech-photos {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 10px;
  justify-content: center;
  margin: 0 auto;
}
.home-tech-photo {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-image: url('/assets/img/hero/villa-mediterranean.jpg');
  background-size: 220%;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.home-tech-photo:nth-child(1) { background-position: 18% 28%; }
.home-tech-photo:nth-child(2) { background-position: 62% 48%; }
.home-tech-photo:nth-child(3) { background-position: 40% 82%; }
.home-tech-photo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes techPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .home-tech-icon,
  .home-tech-step:not(:last-child)::after,
  .home-tech-photo {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .home-tech-step:not(:last-child)::after { transform: scaleX(1); }
}

/* Home responsive */
@media (max-width: 900px) {
  #hero.home-hero { padding: 110px 24px 64px; min-height: auto; }
  .home-hero-h1 { letter-spacing: -1px; }
  .home-service-list { grid-template-columns: 1fr; gap: 16px; }
  .home-service-item { padding: 20px; }
  .home-tech-grid { gap: 36px; }
  .home-tech-card { gap: 28px; }
  /* Timeline collapses to vertical stack on small screens. */
  .home-tech-timeline {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .home-tech-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 18px;
    padding: 0 0 26px 0;
    align-items: start;
  }
  .home-tech-step:last-child { padding-bottom: 0; }
  .home-tech-icon { grid-column: 1; }
  .home-tech-body {
    grid-column: 2;
    align-self: center;
    max-width: 100%;
  }
  .home-tech-step:not(:last-child)::before,
  .home-tech-step:not(:last-child)::after {
    top: 58px;
    left: 25px;
    right: auto;
    bottom: 2px;
    width: 2px;
    height: auto;
  }
  .home-tech-step:not(:last-child)::after {
    transform-origin: top center;
    transform: scaleY(0);
    background: linear-gradient(180deg, var(--clay) 0%, rgba(17,17,17,0.55) 100%);
  }
  .home-tech-step.is-visible:not(:last-child)::after { transform: scaleY(1); }
  .home-tech-step:has(+ .home-tech-step--final):not(:last-child)::after {
    background: linear-gradient(180deg, var(--clay) 0%, var(--accent) 100%);
  }
  .home-tech-photos { gap: 8px; }
}

/* ─── SUCHSEITE: Features / How-it-works + FAQ (Pass 3) ─── */
/* Centered homepage hero is content-height now (search page flows into the
   sections below it, like the mockup). */
#hero.home-hero { min-height: auto; display: block; padding: 40px 64px 44px; }

.feature-section { padding: 48px max(24px, calc((100% - var(--max-w)) / 2)) 8px; }
.feature-head { max-width: var(--max-w); margin: 0 auto 32px; text-align: center; }
.feature-grid {
  max-width: var(--max-w); margin-inline: auto;
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--hover);
  color: var(--text);
  margin-bottom: 14px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.feature-desc { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* How it works + FAQ side by side */
.how-faq-section { padding: 40px max(24px, calc((100% - var(--max-w)) / 2)) 80px; }
.how-faq-grid {
  max-width: var(--max-w); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.how-col .section-h2, .faq-col .section-h2 { margin-bottom: 24px; }
.how-steps { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.how-step { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; }
.how-num {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.how-step-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.how-step-desc { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* FAQ accordion (CSS-only via <details>) */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px;
  font-size: 15px; font-weight: 500; color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-caret { font-size: 11px; color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] .faq-caret { transform: rotate(180deg); }
.faq-a { padding: 0 4px 16px; }
.faq-a p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* Standalone FAQ section (used on the rent-out landing) */
.faq-section { padding: 8px max(24px, calc((100% - var(--max-w)) / 2)) 72px; }
.faq-inner { max-width: 760px; margin-inline: auto; }
.faq-inner .section-h2 { margin-bottom: 24px; }

/* ─── LANDING TEMPLATE: two-column hero + image placeholder ─── */
#hero.lp-hero {
  min-height: auto; display: block;
  padding: 56px 64px 56px; background: var(--bg);
}
.lp-hero-grid {
  max-width: var(--max-w); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.lp-hero-copy { max-width: 560px; }
.lp-hero-h1 {
  font-family: var(--font-sans);
  font-size: clamp(34px, 4.4vw, 56px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.02em; color: var(--text);
  margin: 16px 0 18px;
}
.lp-hero-lead {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6;
  color: var(--text-muted); margin-bottom: 28px;
}
.lp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 3 / 2;
  background: var(--hover);
  display: flex; align-items: center; justify-content: center;
}
.lp-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-hero-ph-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); opacity: 0.6;
}

@media (max-width: 900px) {
  #hero.home-hero { padding: 40px 24px 32px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .how-faq-grid { grid-template-columns: 1fr; gap: 40px; }
  #hero.lp-hero { padding: 36px 24px 36px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .lp-hero-photo { order: 2; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}
