/* Lehnertz Holzbau + Dach – Apple-inspired, no external fonts, no tracking */
:root {
  --red: #C23231;
  --red-dark: #a82928;
  --ink: #1d1d1f;
  --ink-2: #3D454A;
  --muted: #6e6e73;
  --line: rgba(0,0,0,.08);
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --dark: #111315;
  --radius: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font: 100%/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Navigation (translucent material) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.nav .logo img { height: 34px; width: auto; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; font-size: .875rem; }
.nav ul a { color: var(--ink-2); transition: color .2s var(--ease); }
.nav ul a:hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 980px; font-size: 1rem; font-weight: 500;
  border: 0; cursor: pointer; font-family: inherit;
  transition: transform .1s ease-out, background .2s var(--ease), color .2s;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { color: var(--red); background: transparent; padding-left: .4rem; padding-right: .4rem; }
.btn-ghost:hover { text-decoration: underline; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-light { background: #fff; color: var(--ink); }

/* ---------- Typography ---------- */
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.028em; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.012em; font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 40rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.red { color: var(--red); }

section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.bg-2 { background: var(--bg-2); }
.dark { background: var(--dark); color: #f5f5f7; }
.dark h2, .dark h3 { color: #f5f5f7; }
.dark .lead { color: #a1a1a6; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: 0; text-align: center; overflow: hidden; }
.hero .lead { margin: 1.5rem auto 2.2rem; }
.hero .cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero-art { margin: clamp(3rem,6vw,4.5rem) auto 0; max-width: 980px; }
.hero-visual {
  position: relative; aspect-ratio: 16/8; border-radius: var(--radius);
  background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ed 100%);
  overflow: hidden; display: grid; place-items: center;
}
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.roof-line { fill: none; stroke: var(--red); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3.5rem 0 0; }
.fact strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: .4rem; }
.fact span { color: var(--muted); font-size: .95rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.18); }
.card .ico { width: 44px; height: 44px; color: var(--red); margin-bottom: 1.4rem; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { list-style: none; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.card li { font-size: .78rem; background: var(--bg-2); color: var(--ink-2); padding: .3rem .7rem; border-radius: 980px; }
.head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Schiefer ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.slate-art { aspect-ratio: 1; border-radius: var(--radius); background: #1b1e21; overflow: hidden; position: relative; }
.slate-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.checks { list-style: none; margin-top: 2rem; display: grid; gap: .9rem; }
.checks li { display: flex; gap: .8rem; align-items: baseline; color: #d2d2d7; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--red); transform: translateY(-2px); }

/* ---------- Förderung ---------- */
.fund { background: #fff; border-radius: var(--radius); padding: 2.2rem; }
.fund .big { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; color: var(--red); line-height: 1; margin: .6rem 0 .8rem; }
.fund .tag { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.fund p { color: var(--muted); font-size: .97rem; }
.note { margin-top: 2rem; font-size: .85rem; color: var(--muted); max-width: 46rem; }

/* ---------- Projekte ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.ph {
  border-radius: 18px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #e8e8ed, #d2d2d7);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .cap {
  position: absolute; left: .8rem; bottom: .8rem; right: .8rem;
  font-size: .82rem; font-weight: 500; color: #fff;
  background: rgba(0,0,0,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: .5rem .8rem; border-radius: 12px; width: fit-content;
}
.ph.empty::after { content: "Foto folgt"; position: absolute; inset: 0; display: grid; place-items: center; color: #86868b; font-size: .85rem; }
.ph.a { grid-column: span 4; grid-row: span 2; }
.ph.b { grid-column: span 2; }
.ph.c { grid-column: span 2; }
.ph.d { grid-column: span 2; }
.ph.e { grid-column: span 2; }
.ph.f { grid-column: span 2; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.person:not(.lead-p) { flex-direction: column; text-align: center; padding: 1.8rem 1rem; }
.person { background: #fff; border-radius: var(--radius); padding: 1.6rem; display: flex; gap: 1.1rem; align-items: center; }
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-2); color: var(--ink-2); display: grid; place-items: center;
  font-weight: 600; font-size: 1.3rem; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.12rem; margin-bottom: .15rem; }
.person p { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.person.lead-p { grid-column: 1 / -1; padding: 2.2rem; gap: 2rem; }
.person.lead-p .avatar { width: 150px; height: 188px; border-radius: 18px; background: var(--bg-2); }
.avatar.portrait img { object-position: center top; }
.person.lead-p h3 { font-size: 1.6rem; }
.person.lead-p p { font-size: 1rem; max-width: 40rem; }
.jobs { margin-top: 1.25rem; border-radius: var(--radius); background: var(--ink); color: #f5f5f7; padding: 2.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.jobs h3 { color: #fff; font-size: 1.5rem; }
.jobs p { color: #a1a1a6; margin-top: .3rem; }

/* ---------- Region ---------- */
.places { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2.5rem; }
.places span { padding: .55rem 1.1rem; border-radius: 980px; background: #fff; border: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
.direct { display: grid; gap: 1.1rem; margin-top: 2rem; }
.direct a, .direct div { display: block; padding: 1.2rem 1.4rem; border-radius: 16px; background: #fff; transition: background .2s; }
.direct a:hover { background: #fafafa; }
.direct small { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .15rem; }
.direct strong { font-size: 1.1rem; font-weight: 600; }
form { display: grid; gap: .9rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
label { font-size: .82rem; color: var(--muted); display: grid; gap: .35rem; }
input, textarea, select {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border-radius: 12px; border: 1px solid #d2d2d7; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(194,50,49,.14); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.consent a { color: var(--red); }
.form-msg { font-size: .92rem; padding: .9rem 1rem; border-radius: 12px; display: none; }
.form-msg.ok { display: block; background: #eaf7ee; color: #1d6b35; }
.form-msg.err { display: block; background: #fdeceb; color: #9a2322; }

/* ---------- Footer ---------- */
footer { background: var(--bg-2); padding: 3.5rem 0 2.5rem; font-size: .85rem; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot img { height: 30px; width: auto; margin-bottom: 1rem; }
.foot h4 { font-size: .8rem; color: var(--ink); font-weight: 600; margin-bottom: .7rem; }
.foot ul { list-style: none; display: grid; gap: .45rem; }
.foot a:hover { color: var(--red); }
.legal-line { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { padding: 4rem 0 6rem; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 2.4rem 0 .7rem; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: .7rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--red); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .g3 { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .ph.a { grid-column: span 2; grid-row: span 2; }
  .ph.b, .ph.c, .ph.d, .ph.e { grid-column: span 1; }
  .ph.f { grid-column: span 2; }
}
@media (max-width: 760px) {
  .nav ul { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(255,255,255,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1rem;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav ul li a { display: block; padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav.open ul { opacity: 1; transform: none; pointer-events: auto; }
  .nav-toggle { display: block; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav .btn-sm { display: none; }
  .facts { grid-template-columns: 1fr; gap: 1.4rem; text-align: center; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .person.lead-p { flex-direction: column; text-align: center; }
  .row { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .roof-line { animation: none; stroke-dashoffset: 0; }
  .card:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
