/* Energiehaus-Grafik im Sales-Dashboard. Ersetzt die gezeichnete Hausgrafik (Baustein sb).
   Alle Klassen beginnen mit eh-, damit nichts mit dem Dashboard kollidiert. Farben und Radius kommen aus den
   Variablen des Dashboards (--teal, --body). */
.eh-rahmen{display:block;width:100%}
/* Kein Rahmen, kein Kartenhintergrund: der Bildhintergrund laeuft weich in die Seite aus (Deckkraft steckt in den Grundbildern) */
.eh-buehne{position:relative;width:100%;aspect-ratio:2048/1360;overflow:hidden;opacity:0;transition:opacity .5s ease;-webkit-tap-highlight-color:transparent}
.eh-buehne.eh-bereit{opacity:1}
.eh-kam{position:absolute;inset:0}
.eh-kam img{position:absolute;display:block;max-width:none;pointer-events:none;user-select:none;-webkit-user-drag:none}
.eh-kam svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible;pointer-events:none}
.eh-la,.eh-lb{position:absolute;inset:0;pointer-events:none}

/* Wetter: Das Regenbild blendet ueber das Sonnenbild. Steht der Regen, wird das Sonnenbild darunter ausgeblendet,
   damit durch den auslaufenden Regenhimmel nichts vom Sonnenhimmel scheint. */
.eh-grund{inset:0;width:100%;height:100%}
.eh-grund-sonne{transition:opacity .3s ease}
.eh-regen .eh-grund-sonne{opacity:0;transition:opacity .9s ease 1.3s}
.eh-grund-regen{opacity:0;transition:opacity 1.4s ease}
.eh-regen .eh-grund-regen{opacity:1}
.eh-kuehl{transition:filter 1.4s ease,opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
.eh-regen .eh-kuehl{filter:brightness(.8) saturate(.8)}
.eh-sonnig{transition:opacity 1.4s ease}
.eh-regen .eh-sonnig.eh-an{opacity:.4}

/* Geraete und ihre Schatten: an, aus oder Platzhalter (noch nicht gewaehlt) */
.eh-teil{opacity:0;transform:translateY(-7px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1),filter 1.4s ease}
.eh-teil.eh-schatten{transform:none}
.eh-teil.eh-an{opacity:1;transform:none}
.eh-teil.eh-geist{opacity:.36;transform:none;filter:grayscale(1) brightness(1.12)}
.eh-regen .eh-teil.eh-geist{filter:grayscale(1) brightness(.95)}
.eh-teil.eh-spaet.eh-an{transition-delay:.55s}

/* Baeume wachsen mit der Waermepumpe und ziehen sich ohne sie zurueck */
.eh-baum{opacity:0}
.eh-baum.eh-an{animation:eh-wachs 1.3s cubic-bezier(.2,.9,.3,1.12) .5s both}
.eh-baum.eh-aus{animation:eh-schrumpf .95s cubic-bezier(.55,0,.8,.2) both}
.eh-baum.eh-zweit.eh-aus{animation-delay:.14s}
@keyframes eh-wachs{from{opacity:0;transform:scale(.05)}30%{opacity:1}to{opacity:1;transform:scale(1)}}
@keyframes eh-schrumpf{0%{opacity:1;transform:scale(1)}16%{opacity:1;transform:scale(1.025,1.05)}82%{opacity:1}100%{opacity:0;transform:scale(.04)}}

/* Kamin: steht ohne Waermepumpe, faellt zusammen, wenn sie dazukommt */
.eh-kamin{opacity:0;transition:opacity .8s ease,filter 1.4s ease}
.eh-kamin.eh-an{opacity:1}
.eh-kamin.eh-sturz{animation:eh-sturz 1s ease-in both}
@keyframes eh-sturz{0%{opacity:1;transform:none}15%{transform:rotate(-1.2deg)}30%{transform:rotate(1.4deg)}45%{transform:rotate(-1deg) scaleY(.92)}100%{opacity:0;transform:scaleY(.04) scaleX(1.5)}}

/* Module: werden einzeln von links nach rechts aufgelegt */
.eh-modul{opacity:0}
.eh-modul.eh-an{animation:eh-legen .5s cubic-bezier(.2,.85,.3,1.15) var(--d,0s) both}
.eh-modul.eh-aus{animation:eh-heben .3s ease-in both}
.eh-modul.eh-geist{opacity:.38;filter:grayscale(1) brightness(1.5);transition:opacity .5s ease}
@keyframes eh-legen{0%{opacity:0;transform:translateY(-14px) scale(1.04)}55%{opacity:1}100%{opacity:1;transform:none}}
@keyframes eh-heben{from{opacity:1}to{opacity:0;transform:translateY(-8px)}}

/* Stromlinien */
.eh-fluss path{fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .6s ease}
.eh-fl-schein path{stroke-width:30}
.eh-fl-schein path.eh-an{opacity:1}
.eh-fl-linie path{stroke-width:8}
.eh-fl-linie path.eh-an{opacity:1}
.eh-fl-kern path{stroke:#fff;stroke-width:2.2}
.eh-fl-kern path.eh-an{opacity:.45}
.eh-fl-lauf .eh-halo{stroke-width:20;stroke-dasharray:96 424;animation:eh-lauf 2.6s linear infinite}
.eh-fl-lauf .eh-halo.eh-an{opacity:.85}
.eh-fl-lauf .eh-streif{stroke:#fff;stroke-width:4.5;stroke-dasharray:72 448;animation:eh-lauf 2.6s linear infinite}
.eh-fl-lauf .eh-streif.eh-an{opacity:.95}
@keyframes eh-lauf{from{stroke-dashoffset:520}to{stroke-dashoffset:0}}

/* Voegel: fliegen, wenn alles gewaehlt ist */
.eh-voegel{opacity:0;transition:opacity 1.4s ease}
.eh-alles .eh-voegel{opacity:1}
.eh-schwarm{animation:eh-flug 18s linear infinite paused}
.eh-alles .eh-schwarm{animation-play-state:running}
@keyframes eh-flug{0%{transform:translate(380px,330px);opacity:0}7%{opacity:1}90%{opacity:1}100%{transform:translate(1840px,150px);opacity:0}}
.eh-fluegel{fill:none;stroke:#2c3440;stroke-width:1.9px;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round;opacity:.82;animation:eh-schlag 1.5s ease-in-out infinite}
@keyframes eh-schlag{0%,40%,80%,100%{transform:scaleY(1)}20%,60%{transform:scaleY(-.55)}}
.eh-wipp{animation:eh-wipp 3.2s ease-in-out infinite alternate}
@keyframes eh-wipp{from{transform:translateY(-5px)}to{transform:translateY(5px)}}

/* Klickflaechen und Plus-Punkte: gleiche Optik wie in der bisherigen Hausgrafik (hm-klick, hm-ring, hm-plus) */
.eh-kam svg.eh-klicks .eh-klick{pointer-events:auto;cursor:pointer;outline:none}
.eh-ring{fill:rgba(26,94,91,0);stroke:var(--teal,#1a5e5b);stroke-width:2px;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-opacity:0;transition:stroke-opacity .15s ease,fill .15s ease}
.eh-klick:hover .eh-ring,.eh-klick:focus-visible .eh-ring,.eh-klick[aria-pressed=true] .eh-ring{stroke-opacity:1;fill:rgba(26,94,91,.1)}
.eh-plus-schatten{fill:#2a3440;opacity:.14}
.eh-plus-grund{fill:#fff;stroke:var(--teal,#1a5e5b);stroke-width:1.6;transition:fill .15s ease}
.eh-plus-zeichen{fill:none;stroke:var(--teal,#1a5e5b);stroke-width:2;stroke-linecap:round;transition:stroke .15s ease}
.eh-klick:hover .eh-plus-grund,.eh-klick:focus-visible .eh-plus-grund{fill:var(--teal,#1a5e5b)}
.eh-klick:hover .eh-plus-zeichen,.eh-klick:focus-visible .eh-plus-zeichen{stroke:#fff}
.eh-plus.eh-leise{opacity:0;transition:opacity .15s ease}
.eh-klick:hover .eh-plus.eh-leise,.eh-klick:focus-visible .eh-plus.eh-leise{opacity:1}

@media (prefers-reduced-motion:reduce){
  .eh-fl-lauf path,.eh-schwarm,.eh-fluegel,.eh-wipp{animation:none}
  .eh-schwarm{transform:translate(1150px,235px)}
  .eh-baum.eh-an,.eh-modul.eh-an{animation:none;opacity:1}
  .eh-baum.eh-aus,.eh-modul.eh-aus,.eh-kamin.eh-sturz{animation:none;opacity:0}
}
@media print{
  .eh-fl-lauf,.eh-klicks,.eh-voegel{display:none}
}
