/* =========================================================
   Pro Invest Niederrhein — Website
   Farbwelt: Grün / Schwarz (aus dem Logo abgeleitet)
   ========================================================= */

:root {
  --green:       #4f7a3e;
  --green-dark:  #3c5e2f;
  --green-soft:  #eef3e9;
  --brown:       #5c4a2e;
  --ink:         #1b1a17;
  --ink-soft:    #4a4740;
  --paper:       #faf9f6;
  --paper-2:     #f2f0ea;
  --line:        #e2ded4;
  --white:       #ffffff;
  --maxw:        1200px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
  display: inline-block;
  margin-bottom: 1.1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink-soft); position: relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--green); transition: width .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav .btn-call {
  background: var(--green); color: #fff; padding: 10px 20px; border-radius: 2px;
  font-weight: 600; transition: background .2s var(--ease);
}
.nav .btn-call::after { display: none; }
.nav .btn-call:hover { background: var(--green-dark); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../images/grundstueck.jpg") center 42% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,22,16,.28) 0%, rgba(20,22,16,.30) 45%, rgba(20,22,16,.82) 100%);
}
.hero-inner { padding-bottom: clamp(48px, 8vh, 100px); padding-top: 140px; width: 100%; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  color: #fff; max-width: 15ch; margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; color: #cfe0bf; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 54ch;
  color: rgba(255,255,255,.9); font-weight: 400;
}
.hero-meta {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 2rem 3rem;
  align-items: center; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.6rem;
}
.hero-meta .item { font-size: .95rem; }
.hero-meta .item span { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #b9c9a9; margin-bottom: 4px; }
.hero-meta a:hover { color: #cfe0bf; }
.scroll-cue {
  position: absolute; bottom: 26px; right: clamp(20px,5vw,56px);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 10px;
}
.scroll-cue::after { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.6); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%,100%{transform:scaleX(.4);opacity:.5;transform-origin:left} 50%{transform:scaleX(1);opacity:1;transform-origin:left} }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 11vh, 150px) 0; }
.section-num {
  font-family: "Inter", sans-serif; font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brown); font-weight: 600; margin-bottom: 2.6rem;
  display: flex; align-items: center; gap: 14px;
}
.section-num::before { content: ""; width: 34px; height: 1px; background: var(--brown); opacity: .5; }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.about h2 em { font-style: italic; color: var(--green); }
.about .body p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 1.3rem; }
.about .body p:last-child { margin-bottom: 0; }
.about .highlight {
  border-left: 3px solid var(--green); padding: 4px 0 4px 20px;
  color: var(--ink); font-weight: 500; margin: 1.8rem 0;
}

/* ---------- Leistungen ---------- */
.services { background: var(--ink); color: #fff; }
.services h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; max-width: 16ch; margin-bottom: 3.5rem; }
.services h2 em { font-style: italic; color: #a9c78e; }
.services .section-num { color: #a9c78e; }
.services .section-num::before { background: #a9c78e; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.svc {
  background: var(--ink); padding: 2.4rem 2rem; transition: background .3s var(--ease);
}
.svc:hover { background: #26251f; }
.svc .n { font-family: "Fraunces", serif; font-size: 1rem; color: #a9c78e; margin-bottom: 1.4rem; }
.svc h3 { font-size: 1.35rem; color: #fff; margin-bottom: .8rem; }
.svc p { color: rgba(255,255,255,.68); font-size: .96rem; }

/* ---------- Ankauf CTA band ---------- */
.buyband { background: var(--green); color: #fff; }
.buyband .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.buyband h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: #fff; margin-bottom: 1rem; }
.buyband p { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.buyband .stat { text-align: right; }
.buyband .stat .big { font-family: "Fraunces", serif; font-size: clamp(3rem,7vw,5rem); line-height: 1; }
.buyband .stat .lbl { letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: #dcebcf; margin-top: .6rem; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.pill-list li { border: 1px solid rgba(255,255,255,.5); border-radius: 40px; padding: 6px 16px; font-size: .85rem; }

/* ---------- Projekte ---------- */
.projects { background: var(--paper); }
.projects h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 14ch; margin-bottom: 1rem; }
.projects h2 em { font-style: italic; color: var(--green); }
.projects .intro { color: var(--ink-soft); max-width: 58ch; margin-bottom: 3.5rem; font-size: 1.06rem; }
.proj-lead {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  border: 1px solid var(--line); background: var(--white); margin-bottom: 2.5rem; overflow: hidden;
}
.proj-lead .img { position: relative; overflow: hidden; }
.proj-lead .img img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.proj-lead .txt { padding: clamp(1.8rem, 3vw, 3rem); align-self: center; }
.proj-lead .txt .tag { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.proj-lead .txt h3 { font-size: 1.9rem; margin: .8rem 0 1rem; }
.proj-lead .txt p { color: var(--ink-soft); }
.proj-lead .txt .facts { display: flex; gap: 2rem; margin-top: 1.6rem; flex-wrap: wrap; }
.proj-lead .txt .facts div span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.proj-lead .txt .facts div strong { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.3rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gcard { border: 1px solid var(--line); background: var(--white); overflow: hidden; cursor: pointer; }
.gcard .frame { overflow: hidden; aspect-ratio: 4/3; }
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gcard:hover img { transform: scale(1.06); }
.gcard .cap { padding: 1rem 1.2rem; }
.gcard .cap .t { font-weight: 600; font-size: .98rem; }
.gcard .cap .s { color: var(--ink-soft); font-size: .86rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,16,12,.92); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .9rem; }
.lightbox .close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* ---------- Prozess ---------- */
.process { background: var(--paper-2); }
.process h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 16ch; margin-bottom: 3.5rem; }
.process h2 em { font-style: italic; color: var(--green); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.step { border-top: 2px solid var(--green); padding-top: 1.4rem; }
.step .n { font-family: "Fraunces", serif; font-size: 1.1rem; color: var(--green); margin-bottom: .8rem; }
.step h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: #fff; }
.contact .section-num { color: #a9c78e; }
.contact .section-num::before { background: #a9c78e; }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); color: #fff; max-width: 15ch; margin-bottom: 3rem; }
.contact h2 em { font-style: italic; color: #a9c78e; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-card .row { padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-card .row:first-child { padding-top: 0; }
.contact-card .row .lbl { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #a9c78e; margin-bottom: .5rem; }
.contact-card .row .val { font-size: 1.15rem; }
.contact-card .row .val a:hover { color: #a9c78e; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2rem; }
.contact-actions a { padding: 13px 26px; border-radius: 2px; font-weight: 600; font-size: .95rem; transition: .2s var(--ease); }
.contact-actions .primary { background: var(--green); color: #fff; }
.contact-actions .primary:hover { background: var(--green-dark); }
.contact-actions .ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.contact-actions .ghost:hover { border-color: #a9c78e; color: #a9c78e; }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 360px; filter: grayscale(.15); border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: #12130f; color: rgba(255,255,255,.6); padding: 3.5rem 0 2.5rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top img { height: 40px; filter: brightness(0) invert(1); opacity: .9; }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a { font-size: .9rem; transition: color .2s var(--ease); }
.footer-nav a:hover { color: #a9c78e; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; font-size: .84rem; }

/* ---------- Legal pages ---------- */
.legal { padding-top: 140px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin: 2.4rem 0 .8rem; }
.legal h3 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 1rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal a { color: var(--green); text-decoration: underline; }
.legal .back { display: inline-block; margin-bottom: 2rem; color: var(--green); font-weight: 600; font-size: .9rem; }
.legal .notice { background: var(--green-soft); border-left: 3px solid var(--green); padding: 1rem 1.3rem; border-radius: 0 4px 4px 0; font-size: .92rem; color: var(--ink); margin-bottom: 2.4rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .about-grid, .contact-grid, .buyband .wrap, .proj-lead { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .buyband .stat { text-align: left; }
  .proj-lead .img img { min-height: 260px; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; gap: 0; padding: 0; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
  .nav.open { max-height: 420px; }
  .nav a { width: 100%; padding: 16px clamp(20px,5vw,56px); border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn-call { border-radius: 0; margin: 0; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gallery, .steps { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.2rem 2rem; }
}
