/* =====================================================================
   Luxgreen Climadesign GmbH – Statische Website
   Design-System / Stylesheet
   Markenfarben:  Grün #78BF01 · Dunkel #262626 · Creme #F6F6E8
   --------------------------------------------------------------------
   Zum Anpassen: Farben/Schriften unten in :root ändern.
   ===================================================================== */

:root {
  --green:        #78BF01;
  --green-dark:   #5f9701;
  --green-soft:   #eef6df;
  --ink:          #262626;
  --ink-soft:     #3c3c3c;
  --muted:        #6f7574;
  --cream:        #f6f6e8;
  --line:         #e7e7df;
  --white:        #ffffff;

  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(38,38,38,.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: #e9e9e9; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--green-dark); margin-bottom: .6rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 50px;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid var(--green);
  background: var(--green); color: #fff; transition: .18s ease; text-decoration: none;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--green); color: #fff; border-color: var(--green); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { flex-shrink: 0; margin-right: 10px; }
.nav__logo img { height: clamp(26px, 2.4vw, 36px); width: auto; max-width: none; }
.nav__links { display: flex; align-items: center; gap: clamp(10px, 6.67vw - 38px, 26px); list-style: none; }
.nav__links a {
  color: var(--ink); font-weight: 600; font-size: clamp(0.8rem, 0.3rem + 1.1vw, 0.98rem); padding: 6px 0; position: relative; white-space: nowrap;
}
.nav__links a:hover { color: var(--green-dark); text-decoration: none; }
.nav__links a.is-active { color: var(--green-dark); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--green);
}
.nav__cta { margin-left: 6px; display: flex; align-items: center; }
/* Kontakt-Button: weiße Schrift + sauberes Padding, vertikal zentriert */
.nav__cta .btn { color: #fff; padding: 11px 24px; line-height: 1; }
/* Kontakt-Button: bei Hover weiß werden (sonst grüner Text auf grünem Grund) */
.nav__cta .btn:hover,
.nav__links .nav__cta .btn:hover { background: #fff; color: var(--green-dark); border-color: var(--green); text-decoration: none; }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: left;
  background: linear-gradient(120deg, #1f2a16 0%, #2c3a1c 45%, #3f5a16 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 80% -10%, rgba(120,191,1,.35), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; padding: 110px 0 100px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.25rem; color: #e6e6d8; margin-top: 1.1rem; }
.hero .eyebrow { color: #b6e36a; }

/* ---------- Grid / Karten ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--green-soft); }
.card__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .4rem; }
.card__body p { color: var(--muted); font-size: .98rem; margin: 0; }
.card__tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green-dark); }
.card__readmore { margin-top: auto; align-self: flex-end; padding-top: 1.1rem; font-size: .9rem; font-weight: 700; color: var(--green-dark); }
a.card { color: inherit; text-decoration: none; }
a.card:hover { text-decoration: none; }
a.card:hover .card__readmore { color: var(--green); }

/* ---------- Feature / Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-claim { align-items: stretch; }
.split-claim > div { display: flex; flex-direction: column; }
.split-claim > div .btn-row { margin-top: auto; padding-top: 1.6rem; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Leistungs-/Listenpunkte ---------- */
.ticklist { list-style: none; margin: 1rem 0; }
.ticklist li { position: relative; padding: 6px 0 6px 32px; }
.ticklist li::before {
  content: "✓"; position: absolute; left: 0; top: 6px; color: var(--green-dark); font-weight: 800;
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-card a { font-weight: 600; }

/* ---------- Stat / Kennzahl ---------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; text-align: center; }
.stat__num { font-size: 2.6rem; font-weight: 800; color: var(--green-dark); line-height: 1; }
.stat__label { color: var(--muted); margin-top: .4rem; font-size: .95rem; }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal { max-width: 820px; }
.legal h2 { margin: 2rem 0 .6rem; font-size: 1.5rem; }
.legal h3 { margin: 1.4rem 0 .4rem; }
.legal p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c9c4; padding: 64px 0 28px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer a { color: #c9c9c4; }
.site-footer a:hover { color: var(--green); text-decoration: none; }
.footer-logo { height: 38px; margin-bottom: 18px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid #3a3a3a;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8d8d88; font-size: .85rem;
}
.footer-bottom a { color: #8d8d88; }

/* ---------- Page-Header (Unterseiten) ---------- */
.page-head { background: var(--cream); padding: 64px 0; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { color: var(--green-dark); }
.page-head .meta-line { color: var(--muted); margin-top: .6rem; }

/* ---------- Projekt-Detailseite ---------- */
.project-hero { width: 100%; height: clamp(260px, 46vw, 480px); object-fit: cover; }
/* Aufmacher tiefer anschneiden (oberen Bildbereich zeigen) */
.project-hero--shift-down { object-position: center 30%; }
.project-hero--shift-down-35 { object-position: center 35%; }
.project-meta { list-style: none; margin: 0 0 1.4rem; padding: 0; border-left: 3px solid var(--green); }
.project-meta li { padding: 2px 0 2px 16px; color: var(--ink-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; cursor: zoom-in; transition: .2s ease; background: var(--green-soft); }
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 95%; max-height: 95%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: flex; }
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
