/* ==========================================================================
   HIM Hinderks Immobilien Management — Design System v2
   Farben: Gold/Bronze, Blau, Navy, Anthrazit (aus der Marken-Palette)
   Schrift: Fraunces (Headlines) + Manrope (Fließtext/UI)
   ========================================================================== */

:root{
  /* --- Marken-Palette --- */
  --navy:#2E3C4E;
  --navy-deep:#1A232D;
  --navy-mid:#243040;
  --charcoal:#332F26;
  --blue:#295FA3;
  --blue-deep:#1E4A80;
  --blue-soft:#E8EEF6;
  --gold:#A38753;
  --gold-deep:#8A6F3E;
  --gold-soft:#F3ECDC;
  --gold-mist:#D9C9A8;

  /* --- Neutrale Basis (warm, passend zum Gold) --- */
  --paper:#FAF8F4;
  --white:#FFFFFF;
  --ink:#23201B;
  --ink-soft:#6B6456;
  --line:#E7E1D4;
  --line-soft:#F0EBE0;

  /* --- Form/Schatten --- */
  --radius-lg:22px;
  --radius:16px;
  --radius-sm:10px;
  --shadow-sm:0 3px 16px rgba(38,34,20,0.07);
  --shadow-md:0 16px 40px rgba(38,34,20,0.13);
  --shadow-lg:0 30px 70px rgba(20,26,33,0.28);

  /* --- Typografie --- */
  --font-display:'Fraunces','Iowan Old Style',Georgia,serif;
  --font-body:'Manrope','Segoe UI',Arial,sans-serif;

  --ease:cubic-bezier(.22,.68,0,1);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{overflow-x:hidden;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;}
button{font-family:inherit;}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:-0.01em;
  color:var(--navy);
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

/* ---------- Scroll-Reveal (IntersectionObserver treibt .is-visible) ---------- */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{opacity:1; transform:none;}
.reveal-group .reveal:nth-child(1){transition-delay:.03s;}
.reveal-group .reveal:nth-child(2){transition-delay:.11s;}
.reveal-group .reveal:nth-child(3){transition-delay:.19s;}
.reveal-group .reveal:nth-child(4){transition-delay:.27s;}
.reveal-group .reveal:nth-child(5){transition-delay:.35s;}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none;}
}

/* ---------- Header ---------- */
header{
  position:sticky;
  top:0;
  z-index:300;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  padding:0 5%;
  background:var(--paper);
  box-shadow:0 1px 0 var(--line);
  transition:background .4s var(--ease), box-shadow .4s var(--ease);
}
header .logo{display:flex; align-items:center;}
header .logo img{height:52px; width:auto; padding:11px 0;}

@media (min-width:901px){
  header{padding-top:10px;}
}

.nav-toggle{display:none;}

nav ul{list-style:none; display:flex; align-items:center; gap:4px; flex-wrap:wrap;}
nav a{
  display:inline-block;
  text-decoration:none;
  color:var(--navy);
  font-weight:600;
  font-size:0.95rem;
  padding:10px 14px;
  border-radius:var(--radius-sm);
  transition:color .2s, background .2s;
}
nav a:hover{color:var(--blue); background:var(--blue-soft);}
nav a.active{color:var(--white); background:var(--navy);}
nav a.nav-cta{
  background:var(--gold);
  color:var(--white);
}
nav a.nav-cta:hover{background:var(--gold-deep); color:var(--white);}

/* Transparenter Header ueber dem Hero (nur Startseite), wird per JS beim
   Scrollen mit .is-scrolled "solide" - siehe assets/js/site.js */
body.transparent-header header{
  position:fixed;
  top:0; left:0; right:0;
  background:transparent;
  box-shadow:none;
}
body.transparent-header header .logo img{filter:brightness(0) invert(1);}
body.transparent-header nav a{color:#fff;}
body.transparent-header nav a:hover{background:rgba(255,255,255,0.14); color:#fff;}
body.transparent-header nav a.active{background:rgba(255,255,255,0.22);}
body.transparent-header header.is-scrolled{
  position:sticky;
  background:var(--paper);
  box-shadow:0 1px 0 var(--line);
}
body.transparent-header header.is-scrolled .logo img{filter:none;}
body.transparent-header header.is-scrolled nav a{color:var(--navy);}
body.transparent-header header.is-scrolled nav a:hover{background:var(--blue-soft); color:var(--blue);}
body.transparent-header header.is-scrolled nav a.active{color:var(--white); background:var(--navy);}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--gold);
  color:var(--white);
  padding:15px 30px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:0.97rem;
  border:1.5px solid var(--gold);
  cursor:pointer;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn:hover{
  background:var(--gold-deep);
  border-color:var(--gold-deep);
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(138,111,62,0.32);
}
.btn-outline{
  background:transparent;
  border:1.5px solid rgba(255,255,255,0.7);
  color:#fff;
}
.btn-outline:hover{background:rgba(255,255,255,0.14); border-color:#fff;}
.btn-navy{
  background:var(--navy);
  border-color:var(--navy);
  color:var(--white);
}
.btn-navy:hover{background:var(--navy-mid); border-color:var(--navy-mid); box-shadow:0 12px 26px rgba(46,60,78,0.3);}
.btn-navy-outline{
  background:transparent;
  border:1.5px solid var(--navy);
  color:var(--navy);
}
.btn-navy-outline:hover{background:var(--navy); color:var(--white);}
.btn-ghost{
  background:transparent;
  border:1.5px solid var(--line);
  color:var(--navy);
}
.btn-ghost:hover{border-color:var(--gold); color:var(--gold-deep);}
.btn-small{padding:10px 20px; font-size:0.87rem;}
.btn[disabled]{opacity:0.45; cursor:not-allowed; transform:none !important; box-shadow:none !important;}

/* ---------- Preloader (Tuer-Intro, nur Startseite, einmal pro Session) --- */
#door-preloader{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  background:var(--navy-deep);
  perspective:1800px;
}
#door-preloader .door-frame{
  position:absolute; inset:0;
  display:flex;
}
#door-preloader .door-leaf{
  width:50%; height:100%;
  background:
    linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  position:relative;
  transform-style:preserve-3d;
  transition:transform 1.1s var(--ease);
  box-shadow:inset 0 0 0 1px rgba(163,135,83,0.18);
}
#door-preloader .door-leaf::before{
  content:"";
  position:absolute; inset:18px;
  border:1px solid rgba(163,135,83,0.35);
  pointer-events:none;
}
#door-preloader .door-leaf.left{transform-origin:left center;}
#door-preloader .door-leaf.right{transform-origin:right center;}
#door-preloader .door-handle{
  position:absolute; top:50%; width:5px; height:52px; border-radius:3px;
  background:linear-gradient(var(--gold-mist), var(--gold));
  box-shadow:0 0 10px rgba(163,135,83,0.4);
}
#door-preloader .door-leaf.left .door-handle{right:26px; transform:translateY(-50%);}
#door-preloader .door-leaf.right .door-handle{left:26px; transform:translateY(-50%);}
#door-preloader .door-emblem{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:10px;
  z-index:2;
  opacity:1;
  transition:opacity .5s ease;
}
#door-preloader .door-emblem img{height:64px; width:auto; filter:brightness(0) invert(1); opacity:0.95;}
#door-preloader .door-emblem .tagline{
  font-family:var(--font-display);
  color:var(--gold-mist);
  font-size:0.8rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
}
#door-preloader.opening .door-leaf.left{transform:rotateY(-104deg);}
#door-preloader.opening .door-leaf.right{transform:rotateY(104deg);}
#door-preloader.opening .door-emblem{opacity:0;}
#door-preloader.hidden{
  opacity:0;
  pointer-events:none;
  transition:opacity .5s ease .35s;
}
#door-preloader .door-skip{
  position:absolute; bottom:28px; right:28px; z-index:3;
  color:rgba(255,255,255,0.55);
  font-size:0.8rem;
  background:transparent;
  border:1px solid rgba(255,255,255,0.3);
  border-radius:999px;
  padding:8px 18px;
  cursor:pointer;
  transition:color .2s, border-color .2s;
}
#door-preloader .door-skip:hover{color:#fff; border-color:rgba(255,255,255,0.7);}
@media (max-width:640px){
  #door-preloader .door-emblem img{height:46px;}
}
@media (prefers-reduced-motion: reduce){
  #door-preloader{display:none;}
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  color:#fff;
  background:var(--navy-deep);
}
.hero .hero-media{
  position:absolute; inset:0;
  z-index:0;
}
.hero .hero-media img{
  width:100%; height:100%; object-fit:cover;
  transform:scale(1.14);
  animation:heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns{
  from{transform:scale(1.14) translate3d(0,0,0);}
  to{transform:scale(1.02) translate3d(-1.2%,-1%,0);}
}
.hero .hero-scrim{
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(180deg, rgba(26,35,45,0.78) 0%, rgba(26,35,45,0.52) 38%, rgba(26,35,45,0.86) 100%);
}
.hero .hero-content{
  position:relative; z-index:2;
  max-width:1200px;
  margin:0 auto;
  padding:150px 5% 110px;
  width:100%;
}
.hero .hero-eyebrow{
  color:var(--gold-mist);
  font-weight:700;
  font-size:0.85rem;
  letter-spacing:0.08em;
  margin-bottom:18px;
}
.hero h1{
  color:#fff;
  font-size:clamp(2.5rem, 5.4vw, 4.4rem);
  line-height:1.08;
  max-width:800px;
  margin-bottom:24px;
}
.hero h1 em{font-style:italic; color:var(--gold-mist);}
.hero p.hero-sub{
  font-size:1.18rem;
  color:#dfe4ea;
  max-width:560px;
  margin-bottom:40px;
}
.hero .hero-actions{
  display:flex; gap:16px; flex-wrap:wrap;
  margin-bottom:56px;
}
.hero .hero-scroll-cue{
  display:flex; align-items:center; gap:12px;
  color:rgba(255,255,255,0.75);
  font-size:0.85rem;
  text-decoration:none;
  width:fit-content;
}
.hero .hero-scroll-cue .dot{
  width:30px; height:46px;
  border:1.5px solid rgba(255,255,255,0.55);
  border-radius:999px;
  position:relative;
}
.hero .hero-scroll-cue .dot::after{
  content:"";
  position:absolute; top:8px; left:50%;
  width:4px; height:8px;
  background:var(--gold-mist);
  border-radius:999px;
  transform:translateX(-50%);
  animation:scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{opacity:1; transform:translate(-50%,0);}
  70%{opacity:0; transform:translate(-50%,14px);}
  100%{opacity:0; transform:translate(-50%,0);}
}

/* ---------- Allgemeine Sektionen ---------- */
section{padding:108px 5%;}
.section-tight{padding:72px 5%;}
section h2{
  text-align:center;
  font-size:clamp(1.9rem,3vw,2.6rem);
  margin-bottom:16px;
}
section h2 em{font-style:italic; color:var(--gold-deep);}
.section-intro{
  text-align:center;
  color:var(--ink-soft);
  max-width:620px;
  margin:0 auto 56px;
  font-size:1.06rem;
}
.section-kicker{
  text-align:center;
  color:var(--blue);
  font-weight:700;
  font-size:0.84rem;
  letter-spacing:0.1em;
  margin-bottom:14px;
}

/* ---------- Leistungen ---------- */
.services{background:var(--white);}
.service-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
  max-width:1040px;
  margin:0 auto;
}
@media (max-width:900px){.service-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.service-grid{grid-template-columns:1fr;}}
.service-card{
  background:var(--paper);
  border:1px solid var(--line-soft);
  border-radius:var(--radius);
  padding:34px 26px;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:transparent;}
.service-card .icon-badge{
  width:54px; height:54px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem;
  line-height:1;
  margin-bottom:20px;
  background:var(--blue-soft);
}
.service-card .icon-badge span{
  display:block;
  transform:translateY(0.06em);
}
.service-card:nth-child(3n+2) .icon-badge{background:var(--gold-soft);}
.service-card:nth-child(3n) .icon-badge{background:#EDE7F3;}
.service-card h3{font-size:1.12rem; margin-bottom:9px;}
.service-card p{color:var(--ink-soft); font-size:0.96rem;}

/* ---------- Showcase (Bildergalerie mit Parallax) ---------- */
.showcase{background:var(--paper);}
.showcase-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:22px;
  max-width:1160px;
  margin:0 auto;
}
.showcase-grid .showcase-media{
  border-radius:var(--radius-lg);
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow-md);
}
.showcase-grid .showcase-media.tall{grid-row:span 2;}
.showcase-grid .showcase-media img{
  width:100%; height:100%; object-fit:cover;
  min-height:220px;
  transition:transform .6s var(--ease);
}
.showcase-grid .showcase-media:hover img{transform:scale(1.06);}
.showcase-col{display:flex; flex-direction:column; gap:22px;}
@media (max-width:820px){
  .showcase-grid{grid-template-columns:1fr;}
  .showcase-grid .showcase-media.tall{grid-row:auto;}
}

/* ---------- Einzugsgebiet ---------- */
.area{
  background:linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color:#fff;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.area::before{
  content:"";
  position:absolute; top:-120px; right:-100px;
  width:360px; height:360px; border-radius:50%;
  background:radial-gradient(circle, rgba(163,135,83,0.22) 0%, rgba(163,135,83,0) 70%);
}
.area h2, .area h2 em{color:#fff;}
.area h2 em{color:var(--gold-mist);}
.area p{max-width:640px; margin:0 auto 18px; color:#dbe2ea; position:relative; z-index:1;}
.area .btn{position:relative; z-index:1; margin-top:14px;}

/* ---------- Funnel-Teaser (Startseite) ---------- */
.funnel-teaser{
  background:var(--white);
}
.funnel-teaser-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  max-width:1000px;
  margin:0 auto;
}
@media (max-width:760px){.funnel-teaser-grid{grid-template-columns:1fr;}}
.funnel-teaser-card{
  border-radius:var(--radius-lg);
  padding:40px 34px;
  text-decoration:none;
  position:relative;
  overflow:hidden;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
  min-height:220px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.funnel-teaser-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-lg);}
.funnel-teaser-card.card-suche{background:linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color:#fff;}
.funnel-teaser-card.card-verkauf{background:linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); color:#fff;}
.funnel-teaser-card .ft-icon{font-size:2.1rem; margin-bottom:14px;}
.funnel-teaser-card h3{color:#fff; font-size:1.4rem; margin-bottom:8px;}
.funnel-teaser-card p{color:rgba(255,255,255,0.88); font-size:0.96rem; max-width:360px;}
.funnel-teaser-card .ft-arrow{
  position:absolute; top:28px; right:28px;
  width:40px; height:40px; border-radius:50%;
  border:1.5px solid rgba(255,255,255,0.55);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem;
  transition:transform .3s var(--ease), background .3s;
}
.funnel-teaser-card:hover .ft-arrow{transform:translate(4px,-4px); background:rgba(255,255,255,0.16);}

/* ---------- Kontakt ---------- */
.contact-options{
  display:flex; justify-content:center; gap:20px; flex-wrap:wrap;
  margin-bottom:54px;
}
.contact-card{
  background:var(--white);
  border:1px solid var(--line-soft);
  border-radius:var(--radius);
  padding:26px 30px;
  text-align:center;
  text-decoration:none;
  color:var(--ink);
  width:220px;
  box-shadow:var(--shadow-sm);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover{transform:translateY(-5px); box-shadow:var(--shadow-md);}
.contact-card .icon{font-size:1.9rem; display:block; margin-bottom:10px;}
.contact-card.whatsapp .icon{color:#25D366;}
.contact-card.instagram .icon{color:#E1306C;}

form.contact-form{
  max-width:600px; margin:0 auto;
  background:var(--white);
  border:1px solid var(--line-soft);
  padding:42px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}
form.contact-form label{display:block; margin-bottom:6px; font-weight:700; color:var(--navy); font-size:0.9rem;}
form.contact-form input,
form.contact-form textarea,
form.contact-form select{
  width:100%; padding:13px 14px; margin-bottom:20px;
  border:1px solid var(--line); border-radius:var(--radius-sm);
  font-family:inherit; font-size:1rem; background:var(--paper);
  transition:border-color .2s, box-shadow .2s;
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus{
  outline:none; border-color:var(--blue);
  box-shadow:0 0 0 3px var(--blue-soft);
}
form.contact-form button{
  background:var(--gold); color:#fff; border:none;
  padding:15px 32px; border-radius:999px; font-weight:700; cursor:pointer; font-size:1rem;
  transition:background .2s, transform .2s;
}
form.contact-form button:hover{background:var(--gold-deep); transform:translateY(-2px);}

/* ---------- Lade-/Fehlerzustaende ---------- */
.load-status{grid-column:1/-1; text-align:center; color:var(--ink-soft); padding:30px 0; font-size:0.95rem;}
.load-error{
  grid-column:1/-1; text-align:center; color:#8a2f28;
  background:#fdecea; border:1px solid #f5c2bd; border-radius:var(--radius-sm);
  padding:16px 20px; font-size:0.92rem;
}

/* ---------- Legal pages ---------- */
.legal-content{max-width:720px; margin:0 auto; line-height:1.85;}
.legal-content p{margin-bottom:18px;}
.legal-content strong{color:var(--navy);}

/* ---------- Footer ---------- */
footer{
  background:var(--navy-deep);
  color:#aebccb;
  text-align:center;
  padding:40px 5% 32px;
  font-size:0.92rem;
}
footer p{margin-bottom:8px;}
footer a{color:var(--gold-mist); text-decoration:none; font-weight:600;}
footer a:hover{text-decoration:underline;}

/* ==========================================================================
   Angebote-Seite: Verkaufen-Band, Karten, Karussell/Peek, Sold-Stempel,
   Besichtigung-Button, Gesucht-Treffer (Matching)
   ========================================================================== */

.verkaufen-strip{
  display:flex; align-items:center; justify-content:center; gap:18px;
  flex-wrap:wrap; text-align:center;
  background:linear-gradient(100deg, var(--navy), var(--blue-deep));
  color:#fff;
  border-radius:999px;
  padding:16px 30px;
  max-width:1100px;
  margin:0 auto 64px;
  box-shadow:var(--shadow-sm);
}
.verkaufen-strip p{margin:0; font-size:0.98rem; font-weight:600;}
.verkaufen-strip .btn{padding:10px 22px; font-size:0.86rem; white-space:nowrap;}
@media (max-width:600px){
  .verkaufen-strip{border-radius:var(--radius-lg); padding:22px;}
}

.section-block{max-width:1140px; margin:0 auto 70px;}
.section-block:last-child{margin-bottom:0;}
.section-block-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  flex-wrap:wrap; gap:16px; margin-bottom:32px;
}
.section-block-head h3{
  font-size:1.5rem; position:relative; padding-bottom:14px;
}
.section-block-head h3::after{
  content:""; position:absolute; left:0; bottom:0;
  width:52px; height:3px; border-radius:2px; background:var(--gold);
}
.section-block-head p{color:var(--ink-soft); max-width:420px; font-size:0.96rem;}
.gesucht-section{background:var(--blue-soft); border-radius:var(--radius-lg); padding:48px 5%;}

.offers-carousel{position:relative; --fade-start:rgba(250,248,244,1); --fade-end:rgba(250,248,244,0);}
.services .offers-carousel,
.showcase .offers-carousel{--fade-start:rgba(255,255,255,1); --fade-end:rgba(255,255,255,0);}
.gesucht-section .offers-carousel{--fade-start:rgba(232,238,246,1); --fade-end:rgba(232,238,246,0);}
.offers-carousel::before,.offers-carousel::after{
  content:""; position:absolute; top:0; bottom:0; width:64px; pointer-events:none; z-index:3;
  transition:opacity .2s;
}
.offers-carousel::before{left:0; background:linear-gradient(to right, var(--fade-start), var(--fade-end));}
.offers-carousel::after{right:0; background:linear-gradient(to left, var(--fade-start), var(--fade-end));}
.offers-carousel.at-start::before{opacity:0;}
.offers-carousel.at-end::after{opacity:0;}
.offers-carousel.no-scroll::before,.offers-carousel.no-scroll::after{display:none;}
@media (max-width:768px){.offers-carousel::before,.offers-carousel::after{display:none;}}

.offers-track{
  display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-behavior:smooth; scrollbar-width:none; padding-bottom:2px;
}
.offers-track::-webkit-scrollbar{display:none;}
.offers-track .projekt-card{flex:0 0 calc((100% - 60px)/3.5); scroll-snap-align:start; min-width:220px; max-width:320px;}

.carousel-arrow{
  position:absolute; top:38%; transform:translateY(-50%);
  width:42px; height:42px; border-radius:50%;
  background:var(--white); border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:1.3rem; line-height:1; color:var(--navy);
  z-index:5; transition:background .2s, box-shadow .2s, opacity .2s;
}
.carousel-arrow:hover{background:var(--gold-soft); box-shadow:var(--shadow-md);}
.carousel-arrow.prev{left:-20px;}
.carousel-arrow.next{right:-20px;}
.carousel-arrow:disabled{opacity:0.3; cursor:default; pointer-events:none;}
.offers-carousel.no-scroll .carousel-arrow{display:none;}

.load-more-wrap{display:none; justify-content:center; margin-top:22px;}
.load-more-wrap.all-shown{display:none !important;}

@media (max-width:768px){
  .carousel-arrow{display:none;}
  .offers-track{display:block; overflow:visible;}
  .offers-track .projekt-card{flex:none; width:100%; margin-bottom:20px; scroll-snap-align:none;}
  .offers-track .projekt-card.more-hidden{display:none;}
  .load-more-wrap{display:flex;}
}

.projekt-card{
  background:var(--white);
  border:1px solid var(--line-soft);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
  display:flex; flex-direction:column;
}
.projekt-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-md);}
.projekt-card .card-media{position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; background:var(--blue-soft);}
.projekt-card .card-media img{width:100%; height:100%; object-fit:cover;}

.badge{
  display:inline-block; padding:6px 14px; border-radius:999px;
  font-size:0.74rem; font-weight:700; letter-spacing:.02em; color:#fff;
}
.badge-navy{background:var(--navy);}
.badge-blue{background:var(--blue);}
.badge-gold{background:var(--gold);}
.card-media .badge{position:absolute; top:14px; left:14px; box-shadow:0 4px 12px rgba(0,0,0,0.18); z-index:1;}

.sold-stamp{
  position:absolute; top:40%; left:-18%; width:136%; text-align:center;
  transform:rotate(-30deg);
  background:rgba(176,32,32,0.86); color:#fff;
  font-family:var(--font-display); font-weight:700; font-size:1rem;
  letter-spacing:0.12em; text-transform:uppercase; padding:7px 0;
  box-shadow:0 2px 10px rgba(0,0,0,0.22); z-index:2; pointer-events:none;
}

.projekt-card .card-body{padding:22px 22px 24px; display:flex; flex-direction:column; flex-grow:1;}
.projekt-card h4{font-size:1.1rem; margin-bottom:8px;}
.projekt-card p{margin-bottom:18px; font-size:0.92rem; color:var(--ink-soft); flex-grow:1;}
.projekt-card .btn-group{display:flex; gap:10px; flex-wrap:wrap;}

.match-note{
  margin-top:16px; padding:14px 16px;
  background:var(--gold-soft);
  border:1px dashed var(--gold-mist);
  border-radius:var(--radius-sm);
  font-size:0.86rem;
  color:var(--charcoal);
}
.match-note strong{color:var(--gold-deep);}
.match-note .btn{margin-top:10px;}

/* ---------- Modal (Besichtigung / Interesse / Funnel-Zwischenschritte) ---------- */
.modal-overlay{
  position:fixed; inset:0; z-index:1000;
  background:rgba(26,35,45,0.58);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.modal-overlay.open{opacity:1; pointer-events:auto;}
.modal-box{
  background:var(--white);
  border-radius:var(--radius-lg);
  max-width:460px; width:100%;
  padding:36px 32px;
  box-shadow:var(--shadow-lg);
  position:relative;
  transform:translateY(16px) scale(.98);
  transition:transform .3s var(--ease);
  max-height:88vh;
  overflow-y:auto;
}
.modal-overlay.open .modal-box{transform:none;}
.modal-box h3{font-size:1.3rem; margin-bottom:8px;}
.modal-box p.modal-sub{color:var(--ink-soft); font-size:0.92rem; margin-bottom:22px;}
.modal-close{
  position:absolute; top:16px; right:16px;
  width:32px; height:32px; border-radius:50%;
  border:1px solid var(--line); background:var(--paper);
  cursor:pointer; font-size:1rem; color:var(--ink-soft);
  display:flex; align-items:center; justify-content:center;
}
.modal-close:hover{background:var(--line-soft); color:var(--ink);}
.modal-box label{display:block; font-weight:700; color:var(--navy); font-size:0.87rem; margin-bottom:6px;}
.modal-box input,.modal-box textarea{
  width:100%; padding:12px 13px; margin-bottom:16px;
  border:1px solid var(--line); border-radius:var(--radius-sm);
  font-family:inherit; font-size:0.96rem; background:var(--paper);
}
.modal-box input:focus,.modal-box textarea:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft);}
.modal-msg{font-size:0.86rem; font-weight:600; margin-top:4px;}
.modal-msg.ok{color:#1a7f4b;}
.modal-msg.err{color:#8a2f28;}
.modal-success{text-align:center; padding:12px 0;}
.modal-success .ok-icon{
  width:56px; height:56px; border-radius:50%;
  background:#e7f6ee; color:#1a7f4b;
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; margin:0 auto 16px;
}

/* ==========================================================================
   Funnel (Suche/Verkaufen-Assistent)
   ========================================================================== */
.funnel-wrap{max-width:720px; margin:0 auto;}
.funnel-progress{
  display:flex; align-items:center; gap:8px; justify-content:center;
  margin-bottom:46px;
}
.funnel-progress .step-dot{
  width:10px; height:10px; border-radius:50%;
  background:var(--line);
  transition:background .3s, transform .3s;
}
.funnel-progress .step-bar{width:34px; height:2px; background:var(--line);}
.funnel-progress .step-dot.done{background:var(--gold);}
.funnel-progress .step-bar.done{background:var(--gold);}
.funnel-progress .step-dot.current{background:var(--navy); transform:scale(1.35);}

.funnel-step{display:none;}
.funnel-step.active{display:block; animation:funnelIn .45s var(--ease);}
@keyframes funnelIn{from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:none;}}

.funnel-step h2{text-align:center; margin-bottom:10px;}
.funnel-step p.funnel-step-sub{text-align:center; color:var(--ink-soft); margin-bottom:40px;}

.choice-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
@media (max-width:600px){.choice-grid{grid-template-columns:1fr;}}
.choice-card{
  background:var(--white);
  border:2px solid var(--line-soft);
  border-radius:var(--radius-lg);
  padding:30px 24px;
  text-align:left;
  cursor:pointer;
  transition:border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.choice-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-sm); border-color:var(--gold-mist);}
.choice-card.selected{border-color:var(--gold); background:var(--gold-soft);}
.choice-card .choice-icon{font-size:1.8rem; margin-bottom:12px;}
.choice-card h4{font-size:1.1rem; margin-bottom:6px;}
.choice-card p{color:var(--ink-soft); font-size:0.9rem;}

.funnel-field{margin-bottom:22px;}
.funnel-field label{display:block; font-weight:700; color:var(--navy); font-size:0.9rem; margin-bottom:7px;}
.funnel-field input,.funnel-field select,.funnel-field textarea{
  width:100%; padding:13px 14px;
  border:1px solid var(--line); border-radius:var(--radius-sm);
  font-family:inherit; font-size:1rem; background:var(--white);
}
.funnel-field input:focus,.funnel-field select:focus,.funnel-field textarea:focus{
  outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft);
}
.funnel-field-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:560px){.funnel-field-row{grid-template-columns:1fr;}}

.funnel-nav{display:flex; justify-content:space-between; align-items:center; margin-top:36px; gap:12px;}
.funnel-nav .spacer{flex:1;}

.funnel-summary{
  background:var(--paper); border:1px solid var(--line-soft);
  border-radius:var(--radius); padding:22px 24px; margin-bottom:30px;
}
.funnel-summary dl{display:grid; grid-template-columns:auto 1fr; gap:8px 16px; font-size:0.92rem;}
.funnel-summary dt{color:var(--ink-soft); font-weight:600;}
.funnel-summary dd{color:var(--ink);}

.funnel-done{text-align:center; padding:30px 0;}
.funnel-done .ok-icon{
  width:72px; height:72px; border-radius:50%;
  background:#e7f6ee; color:#1a7f4b;
  display:flex; align-items:center; justify-content:center;
  font-size:2.1rem; margin:0 auto 22px;
}

/* ==========================================================================
   Individueller Cursor — Immobilien-Thema (Haus-Umriss)
   Dezenter Begleiter statt Standardpfeil; deaktiviert sich selbst auf
   Touch-Geräten und bei reduced-motion (siehe site.js).
   ========================================================================== */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor label,
body.has-custom-cursor .projekt-card,
body.has-custom-cursor .choice-card{
  cursor:none;
}

.cursor-dot,
.cursor-ring{
  position:fixed;
  top:0; left:0;
  pointer-events:none;
  z-index:9999;
  opacity:0;
  border-radius:50%;
  transition:opacity .4s ease, width .5s var(--ease,cubic-bezier(.22,1,.36,1)),
    height .5s var(--ease,cubic-bezier(.22,1,.36,1)), background .4s ease;
}

/* Kleiner, ruhiger Begleitpunkt */
.cursor-dot{
  width:6px; height:6px;
  background:var(--gold-deep);
}

/* Weicher, leicht verzögerter Lichthof - kein Icon, kein harter Rand */
.cursor-ring{
  width:30px; height:30px;
  background:radial-gradient(circle, rgba(163,135,83,0.16) 0%, rgba(163,135,83,0) 72%);
}
.cursor-ring.hover{
  width:64px; height:64px;
  background:radial-gradient(circle, rgba(163,135,83,0.22) 0%, rgba(163,135,83,0) 72%);
}
.cursor-ring.hover-text{
  width:3px; height:26px;
  border-radius:2px;
  background:rgba(41,95,163,0.5);
}
.cursor-ring.down{ width:22px; height:22px; }

@media (hover:none), (pointer:coarse){
  .cursor-dot,.cursor-ring{ display:none !important; }
  body.has-custom-cursor,
  body.has-custom-cursor *{ cursor:auto !important; }
}

/* ---------- Preload-Lock: verhindert Scrollen waehrend der Tuer-Animation ---------- */
body.preload-lock{
  overflow:hidden;
  height:100vh;
}

/* ---------- Mobile-Navigation (Burger-Menü) ----------
   Bewusst ganz am Dateiende, damit diese Regeln alle vorherigen
   nav-/header-Stile zuverlässig überschreiben. */
@media (max-width:860px){
  .nav-toggle{
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:5px; width:40px; height:40px;
    background:none; border:none; cursor:pointer; z-index:310;
  }
  .nav-toggle .bar{
    width:23px; height:2px; border-radius:2px;
    background:var(--navy);
    transition:transform .3s var(--ease), opacity .2s var(--ease);
  }
  body.transparent-header .nav-toggle .bar{background:#fff;}
  body.transparent-header header.is-scrolled .nav-toggle .bar{background:var(--navy);}
  .nav-toggle.open .bar:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav-toggle.open .bar:nth-child(2){opacity:0;}
  .nav-toggle.open .bar:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  nav ul{
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--paper);
    padding:8px 5% 24px;
    box-shadow:0 16px 30px rgba(20,26,33,0.12);
  }
  nav ul.open{display:flex;}
  nav li{width:100%;}
  nav a{display:block !important; text-align:center;}
  nav a.nav-cta{margin-top:8px;}
  body.transparent-header nav ul{background:var(--navy-deep);}
  body.transparent-header header.is-scrolled nav ul{background:var(--paper);}
}
