/* Hainwerk Demo. Palette: Forest (Tiefgruen, Knochenweiss, Bernstein).
   Radius-Regel: Flaechen 16px, Bedienelemente Pille. Ein Akzent: Bernstein. */
:root {
  --bg: #f3f1ea;
  --surface: #e8e5da;
  --ink: #16241b;
  --muted: #55615a;
  --line: #d3cfc2;
  --green: #1f3b2c;
  --on-green: #f0ede3;
  --accent: #d1912f;
  --on-accent: #16241b;
  --wa: #25d366;
  --r: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --body: "Satoshi", system-ui, sans-serif;
  /* z-Skala: 10 Nav, 20 WhatsApp */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101a14;
    --surface: #18261d;
    --ink: #ece9df;
    --muted: #a3ada5;
    --line: #2a3a30;
    --green: #264a38;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.05; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; max-width: 16ch; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1320px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 48ch; margin-top: 1.25rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; border-radius: 999px; padding: .7rem 1.25rem; font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background .25s, color .25s; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: #e0a445; }
.btn-ghost { background: rgb(255 255 255 / .14); color: #fff; backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
.btn-ghost:hover { background: rgb(255 255 255 / .24); }
.btn-outline { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn i { font-size: 1.25em; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 clamp(1.25rem, 3vw, 2.5rem); color: #fff; transition: background .4s, color .4s, box-shadow .4s; }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font: 800 1.45rem var(--display); letter-spacing: -.03em; text-decoration: none; }
.brand i { font-size: 1.5rem; color: var(--accent); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 980px) { .nav-links { display: none; } }
@media (max-width: 620px) { .nav-phone { display: none; } .nav { height: 64px; } }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #0e1711; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img, .hero-media video, .band-media img, .band-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-video { opacity: 0; transition: opacity 1.2s; }
.slot-video.is-ready { opacity: 1; }
.hero-shade { background: linear-gradient(180deg, rgb(10 18 13 / .5) 0%, rgb(10 18 13 / 0) 28%, rgb(10 18 13 / .35) 48%, rgb(10 18 13 / .88) 100%); }
.hero-copy { position: relative; width: min(1320px, 100% - 2.5rem); margin-inline: auto; padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.h-display { font: 800 clamp(2.6rem, 7.2vw, 6.6rem)/1 var(--display); letter-spacing: -.04em; margin: 0; max-width: 14ch; text-wrap: balance; }
.hero-texts { display: grid; }
.hero-text { grid-area: 1 / 1; align-self: end; opacity: 0; visibility: hidden; }
.hero-text.is-final { opacity: 1; visibility: visible; }
.hero-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.75rem 0 0; font-size: .85rem; font-weight: 700; }
.hero-steps li { padding: .35rem .8rem; border-radius: 999px; color: rgb(255 255 255 / .75); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); transition: background .4s, color .4s, box-shadow .4s; }
.hero-steps li.is-active { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.hero:not(.is-live) .hero-steps { display: none; }
.hero-sub { max-width: 44ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); margin-top: 1.5rem; color: rgb(255 255 255 / .9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.25rem; }

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

/* Bento: 6 Leistungen, 6 Zellen */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(210px, 21vw, 300px); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.cell { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.cell img { flex: 1; min-height: 0; width: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cell:hover img { transform: scale(1.05); }
.cell-text { padding: 1.1rem 1.25rem 1.3rem; background: var(--surface); position: relative; }
.cell-text p, .cell-solid p { color: var(--muted); font-size: .98rem; margin-top: .35rem; }
.cell-plan { grid-column: span 7; grid-row: span 2; }
.cell-terrasse { grid-column: span 5; }
.cell-solid { grid-column: span 5; background: var(--green); color: var(--on-green); padding: 1.6rem; justify-content: flex-end; }
.cell-solid i { font-size: 2.4rem; color: var(--accent); margin-bottom: auto; }
.cell-solid p { color: rgb(240 237 227 / .8); max-width: 38ch; }
.cell-mauer { grid-column: span 4; }
.cell-rasen { grid-column: span 3; }
.cell-teich { grid-column: span 5; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .cell-plan { grid-column: span 2; grid-row: span 1; }
  .cell-terrasse, .cell-mauer, .cell-rasen, .cell-teich { grid-column: span 1; }
  .cell-solid { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .cell { grid-column: auto; }
  .cell img { aspect-ratio: 3 / 2; flex: none; }
  .cell-solid { min-height: 240px; }
}

/* Ablauf: gepinnte Bildfolge */
.ablauf { background: var(--surface); padding: clamp(5rem, 10vw, 8rem) 0; }
.ablauf-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: s; }
.step { counter-increment: s; position: relative; padding: 1.15rem 0 1.15rem 3.4rem; opacity: .32; transition: opacity .5s; }
.step::before { content: counter(s); position: absolute; left: 0; top: 1.05rem; width: 2.2rem; height: 2.2rem; border-radius: 999px; display: grid; place-items: center; font: 700 1rem var(--display); box-shadow: inset 0 0 0 1.5px currentColor; transition: background .5s, color .5s, box-shadow .5s; }
.step.is-active { opacity: 1; }
.step.is-active::before { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.step p { color: var(--muted); margin-top: .3rem; max-width: 44ch; }
.step img { display: none; border-radius: var(--r); margin-top: 1rem; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.frames { position: relative; aspect-ratio: 5 / 6; max-height: 78dvh; width: 100%; border-radius: var(--r); overflow: hidden; }
.frame { position: absolute; inset: 0; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ablauf.static .ablauf-grid { grid-template-columns: 1fr; max-width: 760px; }
.ablauf.static .frames { display: none; }
.ablauf.static .step { opacity: 1; }
.ablauf.static .step img { display: block; }
.ablauf:not(.static) { min-height: 100dvh; display: flex; align-items: center; padding: 88px 0 2rem; }

/* Band mit Videoflaeche */
.band { position: relative; height: clamp(420px, 78vh, 760px); overflow: hidden; display: grid; place-items: end start; color: #fff; background: #0e1711; }
.band-media { position: absolute; inset: -12% 0; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 18 13 / .1), rgb(10 18 13 / .7)); }
.band-text { position: relative; z-index: 1; width: min(1320px, 100% - 2.5rem); margin: 0 auto clamp(2rem, 6vh, 4rem); font: 700 clamp(1.9rem, 4.6vw, 4rem)/1.08 var(--display); letter-spacing: -.03em; justify-self: center; }

/* Projekte: horizontaler Schwenk */
.projekte { padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.pan { margin-top: clamp(2rem, 4vw, 3.5rem); }
.pan-track { display: flex; gap: 1.5rem; padding-inline: max(1.25rem, (100vw - 1320px) / 2); width: max-content; }
.proj { margin: 0; width: min(46vw, 640px); flex: none; }
.proj img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.proj figcaption { display: flex; flex-direction: column; margin-top: .9rem; }
.proj figcaption strong { font: 700 1.2rem var(--display); }
.proj figcaption span { color: var(--muted); font-size: .98rem; }
.projekte.static .pan { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.projekte.static .proj { scroll-snap-align: center; width: min(82vw, 560px); }
.projekte:not(.static) { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 88px 0 2rem; }

/* Stimme */
.stimme { padding-top: clamp(3rem, 6vw, 5rem); }
blockquote { margin: 0; max-width: 26ch; font: 500 clamp(1.7rem, 3.6vw, 3rem)/1.18 var(--display); letter-spacing: -.02em; margin-left: clamp(0rem, 12vw, 14rem); max-width: 900px; }
blockquote footer { display: flex; flex-direction: column; margin-top: 1.5rem; font: 400 1rem/1.4 var(--body); letter-spacing: 0; }
blockquote footer span { color: var(--muted); }

/* Kontakt */
.kontakt { background: var(--green); color: var(--on-green); }
.kontakt .lead { color: rgb(240 237 227 / .78); }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.wege { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.wege li + li { margin-top: .6rem; }
.wege a, .wege button, .weg-static { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1.1rem; border: 0; border-radius: var(--r); background: rgb(240 237 227 / .07); text-align: left; text-decoration: none; transition: background .3s, transform .3s var(--ease); }
.wege a:hover, .wege button:hover { background: rgb(240 237 227 / .14); transform: translateX(6px); }
.wege i { font-size: 1.7rem; color: var(--accent); flex: none; }
.wege strong { display: block; font: 700 1.15rem var(--display); }
.wege small { display: block; font-size: .93rem; color: rgb(240 237 227 / .72); }

.form-card { background: var(--bg); color: var(--ink); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 30px 60px -30px rgb(8 20 13 / .6); }
.form-card h3 { font-size: 1.6rem; margin-bottom: 1.4rem; }
.field { margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label, legend { font-weight: 700; font-size: .93rem; }
.field > label, legend { display: block; margin-bottom: .4rem; padding: 0; }
input[type=text], input[type=tel], input[type=email], textarea { width: 100%; font: inherit; color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, var(--bg)); border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.is-bad { border-color: #b3261e !important; }
.err { color: #b3261e; font-size: .88rem; margin-top: .3rem; min-height: 0; }
@media (prefers-color-scheme: dark) { .err { color: #ff8a80; } .is-bad { border-color: #ff8a80 !important; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: block; padding: .5rem .95rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.chips input:checked + span { background: var(--green); color: var(--on-green); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); margin: .4rem 0 0; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--green); flex: none; }
form .btn-block { margin-top: 1.2rem; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.form-done { text-align: left; padding: 2rem 0; }
.form-done i { font-size: 3.2rem; color: var(--accent); }
.form-done h3 { margin: 1rem 0 .6rem; }
.form-done p { color: var(--muted); margin-bottom: 1.6rem; max-width: 40ch; }
@media (max-width: 900px) {
  .kontakt-grid, .ablauf-grid { grid-template-columns: 1fr; }
  blockquote { margin-left: 0; }
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 3.5rem 0 6.5rem; font-size: .95rem; color: var(--muted); }
.footer .brand { color: var(--ink); margin-bottom: .6rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer nav { display: flex; flex-direction: column; gap: .4rem; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.demo-note { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .88rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp-Attrappe */
.wa-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 20; width: 62px; height: 62px; border: 0; border-radius: 999px; background: var(--wa); color: #fff; font-size: 2.1rem; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgb(8 60 30 / .55); transition: transform .3s var(--ease); }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab::after { content: "1"; position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 999px; background: #e5383b; color: #fff; font: 700 .78rem/22px var(--body); }
.wa-fab.seen::after { display: none; }
.wa { position: fixed; right: 1.25rem; bottom: 6rem; z-index: 20; width: min(370px, 100vw - 2.5rem); border-radius: var(--r); overflow: hidden; background: #efeae2; color: #111b21; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .45); display: flex; flex-direction: column; transform-origin: bottom right; animation: wa-in .45s var(--ease); }
.wa[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.wa-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: #075e54; color: #fff; }
.wa-head strong { display: block; font-size: 1rem; line-height: 1.2; }
.wa-head small { font-size: .8rem; opacity: .85; }
.wa-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 800 1.15rem var(--display); flex: none; }
.wa-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.3rem; padding: .3rem; }
.wa-body { height: 270px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.wa-msg { max-width: 84%; padding: .5rem .7rem .35rem; border-radius: 10px; font-size: .93rem; line-height: 1.4; box-shadow: 0 1px 1px rgb(0 0 0 / .1); animation: wa-in .35s var(--ease); }
.wa-msg.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.wa-msg.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; }
.wa-msg time { display: flex; justify-content: flex-end; align-items: center; gap: .2rem; font-size: .7rem; color: #667781; margin-top: .15rem; }
.wa-msg time i { color: #53bdeb; font-size: .95rem; }
.wa-typing { display: inline-flex; gap: 4px; padding: .75rem .8rem; }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: blink 1.1s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .18s; }
.wa-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.wa-quick { display: flex; gap: .4rem; padding: 0 .8rem .6rem; overflow-x: auto; scrollbar-width: none; }
.wa-quick[hidden] { display: none; }
.wa-quick button { flex: none; border: 0; background: #fff; color: #075e54; font-weight: 700; font-size: .82rem; padding: .45rem .8rem; border-radius: 999px; box-shadow: 0 1px 1px rgb(0 0 0 / .12); }
.wa-form { display: flex; gap: .5rem; padding: .6rem .7rem; background: #f0f2f5; }
.wa-form input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: .65rem 1rem; font: inherit; font-size: .95rem; background: #fff; color: #111b21; }
.wa-form input:focus { outline: 2px solid #075e54; }
.wa-form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 999px; background: #075e54; color: #fff; font-size: 1.25rem; display: grid; place-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa, .wa-msg { animation: none; }
}
