/* Garten & Baumpflege Helge Borchert – Stylesheet */

:root {
  --green-950: #142a0d;
  --green-900: #1d3a13;
  --green-700: #2f5d1e;
  --green-500: #5a8f2e;
  --lime: #a6cf4a;
  --orange: #e8641b;
  --orange-dark: #c9520f;
  --bg: #f7f6f1;
  --surface: #ffffff;
  --text: #1c2117;
  --muted: #5b6355;
  --line: #e3e2d9;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(20, 42, 13, .25);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); }
a:hover { color: var(--orange-dark); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; color: var(--green-950); margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-900); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Großes Logo ---------- */
.brand-band { padding: clamp(1.5rem, 4vw, 2.8rem) 0 clamp(1rem, 2.5vw, 1.8rem); background: var(--bg); }
.brand-logo { display: block; width: min(100%, 980px); margin-inline: auto; }
.brand-logo img { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 70px; }
/* Kleines Logo erscheint in der Leiste erst, wenn das große Logo weggescrollt ist */
.logo { display: none; }
.logo img { width: 170px; }
.site-header.scrolled .header-inner { justify-content: space-between; }
.site-header.scrolled .logo { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.nav a {
  display: block; padding: .55rem .9rem; border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: .98rem;
}
.nav a:hover { background: #ebeadf; color: var(--green-900); }
.nav a[aria-current="page"] { color: var(--green-700); background: #e6eed9; }

.btn.call-mobile { display: none; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--green-900);
}
.nav-toggle svg { width: 30px; height: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--lime); color: var(--green-950); }
.nav .btn { display: inline-flex; padding: .6rem 1.1rem; margin-left: .5rem; color: #fff; }
.nav .btn:hover { background: var(--orange-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(1.8rem, 3.5vw, 2.8rem) 0 clamp(1rem, 3vw, 2rem); overflow: clip; }
.film-kopf { text-align: center; width: min(100% - 2.5rem, 1560px); }
.film-kopf .eyebrow { margin-bottom: .7rem; color: var(--green-700); }
.film-kopf :is(h1, h2) { font-size: clamp(2.1rem, 3.2vw, 3.4rem); margin: 0; text-wrap: balance; }
@media (min-width: 901px) { .film-kopf :is(h1, h2) { font-size: clamp(1.75rem, 3.2vw, 3.4rem); white-space: nowrap; } }
.film-buehne { display: flex; align-items: center; min-height: clamp(560px, 50vw, 90vh); margin-top: 1rem; padding: 3rem 0 4rem; }
.film-buehne .hero-media { width: 42%; margin-left: auto; }
.film-foto { width: 44%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.film-buehne img { border: 5px solid #fff; }
.abschnitt-film { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem); overflow: clip; }
.abschnitt-film .film-text { align-items: start; }
.abschnitt-film .film-text p { font-size: 1.1rem; color: var(--muted); }
.film-text { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; margin-top: 1.5rem; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-500); margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checks li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.checks li::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23142a0d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.hero-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; }
.hero-media .tall { grid-row: span 2; height: 100%; min-height: 380px; }
.hero-media .small { aspect-ratio: 4 / 5; }
.badge {
  position: absolute; left: -1.2rem; bottom: 1.8rem;
  background: var(--green-900); color: #fff; border-radius: 16px; padding: 1rem 1.2rem;
  box-shadow: var(--shadow); line-height: 1.2;
}
.badge strong { display: block; font-size: 1.9rem; color: var(--lime); }
.badge span { font-size: .9rem; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-body p { color: var(--muted); font-size: .98rem; margin: 0; }


/* Quote band */
.quote-band { background: var(--green-900); color: #e9f0df; position: relative; overflow: hidden; }
.quote-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 207, 74, .25), transparent 70%);
}
.quote-band blockquote { margin: 0; max-width: 46rem; position: relative; z-index: 1; }
.quote-band .big { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.2; color: #fff; margin-bottom: .8em; }
.quote-band .big em { color: var(--lime); font-style: normal; }
.quote-band p { font-size: 1.1rem; }

/* CTA */
.cta {
  background: linear-gradient(120deg, var(--green-700), var(--green-900));
  color: #fff; border-radius: 26px; padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; opacity: .9; }
.cta .actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Page header ---------- */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero .lead { max-width: 42rem; }

/* ---------- Referenzen ---------- */
.group-title { display: flex; align-items: center; gap: 1rem; margin: 0 0 2rem; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-title h2 { margin: 0; }
.projects { display: grid; gap: 1.6rem; margin-bottom: 4rem; }
.project {
  display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.project:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.project:nth-child(even) .project-media { order: 2; }
.project-media { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project-media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.project-body { padding: clamp(1.5rem, 3vw, 2.5rem); align-self: center; }
.project-body p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.chips li { background: #e6eed9; color: var(--green-900); font-weight: 600; font-size: .88rem; padding: .3rem .8rem; border-radius: 999px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .3s ease; }
.gallery button:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(84vw, 1000px); overflow: visible; }
.lightbox::backdrop { background: rgba(10, 20, 6, .9); }
.lightbox figure { margin: 0; }
.lightbox img { border-radius: 12px; max-height: 80vh; width: auto; margin: auto; }
.lightbox figcaption { color: #fff; text-align: center; padding-top: .8rem; display: flex; flex-direction: column; gap: .2rem; }
.lb-zahl { font-size: .85rem; opacity: .7; }
.lightbox-close, .lightbox-nav {
  position: fixed; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--green-950); display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3); transition: background .15s ease, transform .15s ease;
}
.lightbox-close { top: 1rem; right: 1rem; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; }
.lightbox-nav { top: 50%; width: 52px; height: 52px; transform: translateY(-50%); }
.lightbox-nav svg { width: 26px; height: 26px; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-nav:hover, .lightbox-close:hover { background: var(--lime); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
[data-lightbox] { cursor: zoom-in; }
@media (max-width: 560px) {
  .lightbox { max-width: 96vw; }
  .lightbox img { max-height: 68vh; }
  .lightbox-nav { top: auto; bottom: 1.2rem; transform: none; width: 48px; height: 48px; }
  .lightbox-nav:hover { transform: scale(1.08); }
  .lightbox-nav.prev { left: calc(50% - 60px); }
  .lightbox-nav.next { right: calc(50% - 60px); }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; }
.contact-list li {
  display: flex; gap: 1rem; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem;
}
.contact-list .icon {
  width: 46px; height: 46px; border-radius: 12px; background: #e6eed9; color: var(--green-700);
  display: grid; place-items: center; flex: none;
}
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a, .contact-list strong { font-weight: 700; color: var(--green-950); text-decoration: none; font-size: 1.08rem; }
.contact-list a:hover { color: var(--orange-dark); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(90, 143, 46, .15); }
.field textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 1.2rem 0 1.5rem; }
.consent input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--green-700); flex: none; }
.hidden { position: absolute; left: -9999px; }
.req { color: var(--orange-dark); }
.note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.form-status { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 12px; font-weight: 600; }
.form-status.fehler { background: #fdecea; color: #9b2c1c; }
button:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Legal ---------- */
.legal { max-width: 48rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.12rem; margin-top: 1.8rem; }
.legal address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #cfd8c4; padding: 3.5rem 0 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #e9f0df; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-brand strong { color: #fff; font-size: 1.15rem; display: block; margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards, .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-inner, .site-header.scrolled .header-inner { justify-content: flex-end; }
  .site-header.scrolled .logo { margin-right: auto; }
  .btn.call-mobile { display: inline-flex; padding: .55rem 1rem; font-size: .95rem; }
  .header-inner { min-height: 60px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none; padding: .8rem 1.25rem 1.2rem;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: .8rem 1rem; }
  .nav .btn { display: flex; margin: .5rem 0 0; justify-content: center; }
  .film-text, .contact-grid, .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
  .hero-media .tall { min-height: 320px; }
  .badge { left: .8rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .logo img { width: 140px; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .hero .actions .btn, .cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta, .nav-toggle { display: none; }
}

/* ---------- Abschnittsfarben ---------- */
.bg-weiss { background: var(--surface); }
.bg-creme { background: var(--bg); }

/* Video in voller Breite hinter den Fotos */
.has-bg { position: relative; overflow: hidden; isolation: isolate; }
.bg-parallax {
  position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: -2;
  background: var(--bild) center / cover no-repeat;
  will-change: transform;
}
/* Hintergrundvideo: das Motiv (Kletterer) sitzt neben den Fotos.
   --motiv = Lage im Video (0 links … 1 rechts), --ziel = Lage auf dem Bildschirm. */
.bg-film { position: absolute; inset: 3px 0; z-index: -2; overflow: clip; container-type: size; }
.bg-video {
  --b: max(110cqw, 177.8cqh); --h: calc(var(--b) * .5625);
  position: absolute; display: block; width: var(--b); height: var(--h); max-width: none; object-fit: cover;
  left: calc(var(--ziel) - var(--b) * var(--motiv));
  top: clamp(100cqh - var(--h), 45cqh - var(--h) * .45, 0px);
}
/* Video ohne Aufhellung, in voller Breite deckend */
.film-buehne .bg-video { --b: max(131cqw, 177.8cqh); }
.film-rechts .bg-video { --b: max(138cqw, 177.8cqh); }
/* Schmale Bildschirme: Video bildschirmhoch stehen lassen, sonst wird der Ausschnitt zu stark vergrößert */
@media (max-width: 900px) {
  .has-bg:has(.bg-film) { overflow: clip; }
  .bg-film { container-type: normal; }
  .bg-film .bg-video { position: sticky; top: 0; left: auto; width: 100%; height: 100vh; height: 100svh; max-height: 100%; object-position: calc(var(--motiv) * 100%) 50%; }
  .film-buehne { padding: 64vh 0 5rem; padding-top: 64svh; min-height: 0; }
  .film-buehne :is(.hero-media, .film-foto) { width: 100%; }
}
/* Ober- und Unterkante laufen weich in die Seitenfarbe aus */
.has-bg:has(.bg-film)::after {
  content: ""; position: absolute; inset: -1px 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--bg) 4px, transparent) top / 100% min(20%, 200px) no-repeat,
    linear-gradient(transparent, var(--bg) calc(100% - 4px)) bottom / 100% min(33%, 260px) no-repeat;
}


/* ---------- Einblenden beim Scrollen ---------- */
/* .js wird im <head> gesetzt (nur wenn Animation erwünscht ist).
   Die Liste muss zu AUSWAHL in js/reveal.js passen. */
.js :is(
  .page-hero .container > *,
  .hero .eyebrow, .hero .lead, .hero .actions, .hero .checks li, .hero-media > *,
  .section-head > *, .card, .film-foto, .abschnitt-film .film-kopf > *, .abschnitt-film .film-text > *,
  .quote-band blockquote > *, .cta,
  .group-title, .project, .gallery > *,
  .contact-list li, .contact-grid > div > img, .form-card,
  .wort
):not(.shown) {
  opacity: 0;
  transform: translateY(24px);
}
.js .wort:not(.shown) { transform: translateY(.45em); }
.js .wort { display: inline-block; }
.js .einblenden {
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--delay, 0s);
}
