/* Echte Aufnahmen statt Visualisierungen (Nov 2026): Hero-Video, Baum- und Gartenszene, Gartengestaltung, Sondereinsätze. */

/* Hero: Video liegt wie Poster/Canvas in der Bühne; kürzere Scrollstrecke als mit der Bildsequenz */
/* 11/2026: etwas längere Strecke, damit ein kräftiger Dreh am Mausrad kein Bild überspringt */
.scroll-hero{height:300svh}
@media(max-width:800px){.scroll-hero{height:270svh}}
@media(prefers-reduced-motion:reduce){.scroll-hero{height:100svh}}
/* Handy (11/2026): je Startbild ein Rastpunkt – ein Wischer führt zum nächsten Bild, nicht über alle vier hinweg */
.scroll-hero .hero-snap{display:none}
@media(max-width:800px) and (pointer:coarse) and (prefers-reduced-motion:no-preference){
  html{scroll-snap-type:y proximity}
  .scroll-hero .hero-snap{display:block;position:absolute;left:0;width:1px;height:1px;pointer-events:none;scroll-snap-align:start;scroll-snap-stop:always}
}
.buehne .hero-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%;display:block;z-index:1;background:#111310}
.buehne .hero-film + canvas{display:none}

/* Baumszene: ein Bild, drei Videos, per data-state eingeblendet */
.b-home .p-tree{background:#0f110e}
.b-home .p-tree .tree-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity 420ms cubic-bezier(.22,1,.36,1)}
.b-home .p-tree[data-state=care] .tm-care,
.b-home .p-tree[data-state=fell] .tm-fell,
.b-home .p-tree[data-state=scan] .tm-scan,
.b-home .p-tree[data-state=grind] .tm-grind,
.b-home .p-tree[data-state=plant] .tm-plant{opacity:1}
.b-home .p-explore[data-service-input=keyboard] .tree-media{transition:none}

/* Gartenszene: Kranfoto, bei Heckenpflege das Fassaden-Video */
.b-home .p-garden-scene{background:#0f110e}
.b-home .p-garden-scene .garden-photo,.b-home .p-garden-scene .garden-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.b-home .p-garden-scene .garden-film{opacity:0;transition:opacity 420ms cubic-bezier(.22,1,.36,1)}
.b-home .p-garden-scene[data-zone=hedge] .garden-film{opacity:1}
.b-home .p-garden[data-service-input=keyboard] .garden-film{transition:none}

/* Gartengestaltung (ehem. Bewässerung): Fotos füllen die Fläche */
.b-home .p-irrigation .p-irrigation-scene{aspect-ratio:16/10;background:#0f110e}
.b-home .p-irrigation-scene>img.irrigation-photo{object-fit:cover}
.b-home .p-irrigation-scene:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#ecefe826;pointer-events:none}
.b-home .p-irrigation-scene[data-step=consult]:before{width:16.7%}
.b-home .p-irrigation-scene[data-step=plan]:before{width:33.3%}
.b-home .p-irrigation-scene[data-step=install]:before{width:50%}
.b-home .p-irrigation-scene[data-step=maintain]:before{width:66.7%}
.b-home .p-irrigation-scene[data-step=water]:before{width:83.3%}
.b-home .p-irrigation-scene[data-step=extend]:before{width:100%}
.b-home .p-irrigation-scene:before{content:"";position:absolute;left:0;bottom:0;height:3px;background:#57a639;z-index:1;transition:width 420ms cubic-bezier(.22,1,.36,1)}

/* Grüntöne: Gartenbereich etwas heller */
.b-home .p-garden{background:linear-gradient(160deg,#2e332b 0%,#222520 100%)}
.b-home .p-state{border-left:2px solid #57a639}
.b-home .p-scene,.b-home .b-film-box{box-shadow:0 24px 60px -30px rgba(0,0,0,.8)}

@media(prefers-reduced-motion:reduce){
  .buehne .hero-film{display:none}
  .b-home .p-tree .tree-media,.b-home .p-garden-scene .garden-film,.b-home .p-irrigation-scene:before{transition:none}
}

/* Baumpflege: Obstbaum vorher, nach kurzer Pause nachher */
.b-home .p-tree[data-state=care] .tm-care-after{transition-delay:1.4s}
.b-home .p-tree:not([data-state=care]) .tm-care-after{transition-delay:0s}
.b-home .p-explore[data-service-input=keyboard] .tm-care-after{transition-delay:0s}
/* Sondereinsatz-Karte ohne Video: nur Foto */
.b-film-case:not(.has-film) .b-film-control{display:none}

/* ---------- Abschnitte: große Überschrift links mit Button, Bild rechts, Unterpunkte als Karten ---------- */
.b-home :is(.p-explore,.p-garden,.p-irrigation) .p-section-head{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin:0 0 32px;max-width:none}
.b-home :is(.p-explore,.p-garden,.p-irrigation) .p-section-head h2.b-mixed-title{font-size:clamp(44px,5.2vw,74px);line-height:1.02;letter-spacing:-.04em;max-width:none;margin:0}
.b-home :is(.p-explore,.p-garden,.p-irrigation) .p-section-head h2.b-mixed-title .b-script{font-size:clamp(50px,5.9vw,84px);line-height:1.08}
.b-home .p-irrigation .p-section-head h2.b-mixed-title{font-size:clamp(38px,4.3vw,60px)}
.b-home .p-irrigation .p-section-head h2.b-mixed-title .b-script{font-size:clamp(42px,4.7vw,66px)}
.b-home :is(.p-explore,.p-garden,.p-irrigation) .p-section-head p{font-size:16px;line-height:1.6;max-width:38ch;margin:0;color:#b6bdaf}
.b-home :is(.p-explore,.p-garden,.p-irrigation) .p-section-head .p-button{margin-top:6px}


@media(min-width:900px){
  .b-home :is(.p-explore,.p-garden,.p-irrigation){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);column-gap:clamp(32px,4vw,64px);row-gap:28px;align-items:start;max-width:1280px;margin-inline:auto}
  .b-home :is(.p-explore,.p-garden,.p-irrigation) .p-section-head{grid-column:1;grid-row:1;margin:0}
  .b-home :is(.p-explore,.p-garden,.p-irrigation) .p-editorial{display:contents}
  .b-home :is(.p-explore,.p-garden,.p-irrigation) .p-editorial>:first-child{grid-column:2;grid-row:1/3}
  .b-home :is(.p-explore,.p-garden,.p-irrigation) .p-detail{grid-column:1;grid-row:2;min-height:0}
  .b-home .p-garden .p-garden-services{grid-column:1/-1;grid-row:3;margin-top:24px}
  .b-home :is(.p-explore,.p-garden) .p-scene{aspect-ratio:4/3}
}

/* Unterpunkte als Modul-Karten (Nummer · Bezeichnung · Leuchtpunkt) */
.b-home .p-options,.b-home .b-tree-tabs{display:flex;flex-direction:column;gap:8px;margin:0 0 24px;counter-reset:modul;border:0}
.b-home .p-options button,.b-home .b-tree-tabs button{position:relative;display:flex;align-items:center;gap:12px;min-height:52px;padding:0 14px 0 14px;border:1px solid #32382f;border-radius:8px;background:#141713;color:#ecefe8;font-family:'Stack',BlahaNavigation,Arial,sans-serif;font-size:15px;font-weight:500;text-align:left;cursor:pointer;box-shadow:none;transition:border-color .3s,background .3s}
.b-home .p-options button::before,.b-home .b-tree-tabs button::before{counter-increment:modul;content:counter(modul,decimal-leading-zero);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;letter-spacing:.12em;color:#9da793;width:24px;flex:none}
.b-home .p-options button::after,.b-home .b-tree-tabs button::after{content:"";margin-left:auto;width:10px;height:10px;border-radius:50%;background:#242822;flex:none;transition:background .3s,box-shadow .3s}
.b-home .b-tree-tabs button svg{display:none}
.b-home .p-options button:hover,.b-home .b-tree-tabs button:hover{border-color:#4c5448;background:#181b17}
.b-home .p-options button[aria-pressed=true],.b-home .b-tree-tabs button[aria-pressed=true],.b-home .b-tree-tabs button[aria-selected=true]{border-color:#57a639;background:#181b17;color:#ecefe8}
.b-home .p-options button[aria-pressed=true]::after,.b-home .b-tree-tabs button[aria-pressed=true]::after,.b-home .b-tree-tabs button[aria-selected=true]::after{background:#57a639;box-shadow:0 0 12px #57a639}
/* „Ansicht zurücksetzen“ bleibt ein schlichter Textlink */
.b-home .p-garden .p-options button:last-child{border:0;background:none;min-height:40px;padding:0;font-size:13px;color:#b6bdaf;counter-increment:none}
.b-home .p-garden .p-options button:last-child::before,.b-home .p-garden .p-options button:last-child::after{display:none}
.b-home .p-garden .p-options button:last-child[aria-pressed=true]{color:#ecefe8}
@media(max-width:800px){
  .b-home .p-options,.b-home .b-tree-tabs{display:flex;flex-direction:column}
  .b-home :is(.p-explore,.p-garden,.p-irrigation) .p-section-head h2.b-mixed-title{font-size:44px}
  .b-home :is(.p-explore,.p-garden,.p-irrigation) .p-section-head h2.b-mixed-title .b-script{font-size:50px}
  .b-home .p-irrigation .p-section-head h2.b-mixed-title{font-size:36px}
  .b-home .p-irrigation .p-section-head h2.b-mixed-title .b-script{font-size:40px}
}
.b-home :is(.p-explore,.p-irrigation) .p-options button:last-child,.b-home .b-tree-tabs button:last-child{font-size:15px;color:#ecefe8}

/* Gartengestaltung: Leistungsumfang der Planung */
.b-home .b-plan-scope{margin:40px auto 0;max-width:1280px;border-top:1px solid #ecefe826;padding-top:28px}
.b-home .b-plan-scope h3{font-size:22px;font-weight:600;letter-spacing:-.02em;margin:0 0 16px}
.b-home .b-plan-scope ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.b-home .b-plan-scope li{border:1px solid #32382f;border-radius:999px;background:#141713;padding:9px 14px;font-size:14px;color:#ecefe8;line-height:1.3}
.b-home .b-plan-scope p{margin:16px 0 0;font-size:14px;color:#b6bdaf}
@media(min-width:900px){.b-home .p-irrigation .b-plan-scope{grid-column:1/-1;grid-row:3;margin-top:8px}}

/* ---------- Anfrage-Buttons: kräftig, einheitlich, mit Bewegung ---------- */
.b-home .p-button,.b-home .enquiry-form .button.primary,.b-home .scroll-hero .knopf,.b-header .b-header-enquiry{
  position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:18px;
  min-height:54px;padding:0 20px 0 22px;border-radius:8px;border:1px solid #57a639;
  background:linear-gradient(180deg,#57a639 0%,#4e9533 100%);color:#0d0e0c;
  font-family:'Stack',BlahaNavigation,Arial,sans-serif;font-size:16px;font-weight:700;letter-spacing:-.005em;line-height:1;text-decoration:none;white-space:nowrap;
  box-shadow:0 1px 0 #6ab54d inset,0 14px 30px -14px rgba(87,166,57,.75);
  transition:transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s,filter .18s;cursor:pointer}
.b-home .p-button:hover,.b-home .enquiry-form .button.primary:hover,.b-home .scroll-hero .knopf:hover,.b-header .b-header-enquiry:hover{
  transform:translateY(-2px);filter:brightness(1.06);color:#0d0e0c;background:linear-gradient(180deg,#6ab54d 0%,#57a639 100%);
  box-shadow:0 1px 0 #6ab54d inset,0 20px 36px -14px rgba(87,166,57,.9)}
.b-home .p-button:active,.b-home .enquiry-form .button.primary:active,.b-home .scroll-hero .knopf:active,.b-header .b-header-enquiry:active{transform:translateY(0) scale(.99)}
/* Pfeil wandert beim Hover nach rechts oben */
.b-home .p-button svg,.b-home .enquiry-form .button.primary svg,.b-home .scroll-hero .knopf span[aria-hidden],.b-header .b-header-enquiry span[aria-hidden]{transition:transform .18s cubic-bezier(.22,1,.36,1)}
.b-home .p-button:hover svg,.b-home .enquiry-form .button.primary:hover svg{transform:translateX(4px)}
.b-home .scroll-hero .knopf:hover span[aria-hidden],.b-header .b-header-enquiry:hover span[aria-hidden]{transform:translate(2px,-2px)}
.b-home .scroll-hero .knopf{border-bottom:1px solid #57a639;margin-top:28px}
.b-header .b-header-enquiry{min-height:44px;padding:0 16px 0 18px;font-size:13px;gap:12px;border-radius:7px}
.b-home .p-options button:focus-visible,.b-home .p-button:focus-visible,.b-header .b-header-enquiry:focus-visible{outline:2px solid #ecefe8;outline-offset:3px}
@media(max-width:800px){
  .b-home .p-button,.b-home .enquiry-form .button.primary{width:100%;min-height:52px}
  .b-header .b-header-enquiry{padding:0 12px;min-height:40px;font-size:12px}
}

/* Baum-Abschnitt: Unterzeile im Reiter, „Das gehört dazu“-Liste */
.b-home .b-tree-tabs button{flex-wrap:wrap;row-gap:0}
.b-home .b-tree-tabs .b-tab-sub{order:3;flex-basis:100%;padding-left:36px;margin-top:2px;font-size:12px;font-weight:400;color:#9da793;line-height:1.2}
.b-home .b-tree-tabs button:has(.b-tab-sub){padding-top:10px;padding-bottom:10px;align-content:center}
.b-home .b-tree-tabs button:has(.b-tab-sub)::after{order:2}
.b-home #tree-copy p{margin-bottom:14px}
.b-home .b-tree-points{list-style:none;margin:0 0 4px;padding:0;display:grid;gap:8px}
.b-home .b-tree-points li{position:relative;padding-left:26px;font-size:15px;line-height:1.45;color:#ecefe8}
.b-home .b-tree-points li::before{content:"";position:absolute;left:0;top:.28em;width:14px;height:14px;border-radius:50%;background:#57a639;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E");box-shadow:inset 0 0 0 4px #141713}
.b-home .p-tree .resisto{background:#111310}

/* Hero: pro Überschrift ein eigenes Bild, Überblendung beim Scrollen */
.buehne .hero-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:1;opacity:0;transform:scale(1.03);transition:opacity .45s cubic-bezier(.22,1,.36,1),transform 1.4s cubic-bezier(.22,1,.36,1);pointer-events:none}
.buehne .hero-film{transition:opacity .45s cubic-bezier(.22,1,.36,1)}
.buehne:is([data-hero-stage="1"],[data-hero-stage="2"],[data-hero-stage="3"]) .hero-film{opacity:0}
.buehne[data-hero-stage="1"] .hs-1,.buehne[data-hero-stage="2"] .hs-2,.buehne[data-hero-stage="3"] .hs-3{opacity:1;transform:scale(1)}
.buehne .hs-1{object-position:50% 42%}
.buehne .hs-2{object-position:50% 78%}
.buehne .hs-3{object-position:50% 55%}
.scroll-hero .scroll-credit{transition:opacity .4s}
@media(prefers-reduced-motion:reduce){.buehne .hero-slide{transition:opacity .2s;transform:none}}
