/* ===========================
   HomeHarbor – HERO (global)
   Scope: #hh-inline-hero
   =========================== */

/* ---- Tokens (scoped) ---- */
#hh-inline-hero{
  --dark:#0A1428;
  --ink:#ecf0f1;
  --muted:#94a3b8;
  --green:#22c55e;
  --grad-a:#3366cc;
  --grad-b:#0099ff;
  --grad-c:#00cc99;
  --overlay:rgba(0,0,0,.7);
  --ring:rgba(147,197,253,.6);
}

/* ---- Section ---- */
#hh-inline-hero .hh-hero-section{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  padding:100px 20px 80px;
  border-radius:28px;
  background:
    radial-gradient(120% 120% at 20% -20%, #1a2a47 0%, rgba(26,42,71,.6) 40%, transparent 60%),
    radial-gradient(130% 100% at 80% 0%, rgba(0,153,255,.18) 0%, transparent 55%),
    linear-gradient(180deg, #12223f 0%, var(--dark) 100%);
  box-shadow:0 24px 60px rgba(2,6,23,.35), 0 6px 20px rgba(2,6,23,.25);
  text-align:center;
  overflow:hidden;
  position:relative;
}

#hh-inline-hero .hh-hero-container{
  max-width:1100px;
  margin:0 auto;
}

/* ---- Headline ---- */
#hh-inline-hero .hh-hero-headline{
  font-size:clamp(36px,5vw,56px);
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.02em;
  background:linear-gradient(90deg,var(--grad-a),var(--grad-b),var(--grad-c));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  margin:0 0 18px;
  text-shadow:0 4px 14px rgba(0,0,0,.35);
}

#hh-inline-hero .hh-hero-subheadline{
  font-size:clamp(18px,2.6vw,22px);
  color:var(--muted);
  max-width:820px;
  margin:0 auto 10px;
  line-height:1.6;
}

#hh-inline-hero .hh-hero-badges{
  margin:14px 0 0;
  opacity:.92;
}

/* ---- Impact / Counter ---- */
#hh-inline-hero .hh-co2-impact-area{ margin-top:42px; }

#hh-inline-hero .hh-co2-impact-label{
  font-size:clamp(18px,2.2vw,22px);
  font-weight:800;
  color:#c8d3e6;
  margin:0 0 12px;
}

#hh-inline-hero .hh-co2-counter-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  font-size:clamp(18px,2.4vw,22px);
}

#hh-inline-hero .hh-counter-line{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:.35em;
  line-height:1;
}

#hh-inline-hero #hh-co2counter{
  font-size:clamp(54px,8vw,86px);
  color:var(--green);
  font-weight:800;
  letter-spacing:-.02em;
  transition:transform .3s ease;
  white-space:nowrap;
}

#hh-inline-hero #hh-co2counter.hh-glow{ transform:scale(1.02); }

#hh-inline-hero #hh-co2sprout{
  font-size:1.15em;
  opacity:0;
  transition:opacity .3s ease;
}

#hh-inline-hero #hh-co2sprout.hh-show{
  opacity:1;
  animation:hh-popUp .6s cubic-bezier(.68,-.55,.27,1.55);
}

#hh-inline-hero .hh-co2-counter-caption{
  font-size:clamp(16px,2vw,18px);
  color:#c8d3e6;
  opacity:.95;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

/* ---- Tip (Glühbirne) ---- */
#hh-inline-hero .hh-tip-btn{
  margin-top:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px; height:34px;
  border-radius:999px;
  background:rgba(250,204,21,.06);
  border:1px solid rgba(250,204,21,.35);
  color:#fde68a;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  animation: hh-pulse 1.8s ease-in-out infinite;
}

#hh-inline-hero .hh-tip-btn:hover{
  transform:translateY(-1px);
  background:rgba(250,204,21,.12);
  box-shadow:0 0 0 6px rgba(250,204,21,.12);
  border-color:rgba(250,204,21,.55);
}

#hh-inline-hero .hh-tip-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px var(--ring), 0 0 0 8px rgba(250,204,21,.18);
}

/* ---- Cap-Teaser ---- */
#hh-inline-hero .hh-hero-capline{
  margin:16px 0 -2px;
  color:#c8d3e6;
  font-weight:700;
  font-size:14px;
  opacity:.95;
  display:flex;
  gap:.5em;
  align-items:center;
  justify-content:center;
}

#hh-inline-hero .hh-hero-capline .capdot{
  width:.6em; height:.6em;
  border-radius:999px;
  background:linear-gradient(90deg,#22c55e,#06b6d4);
  display:inline-block;
}

/* ---- CTA ---- */
#hh-inline-hero .hh-cta-button{
  display:inline-block;
  margin-top:14px;
  padding:16px 32px;
  font-size:18px;
  font-weight:800;
  border-radius:12px;
  color:#fff;
  text-decoration:none;
  background:linear-gradient(90deg,var(--grad-a),var(--grad-b),var(--grad-c));
  box-shadow:0 10px 28px rgba(0,153,255,.28);
  transition:transform .25s ease, box-shadow .25s ease;
}

#hh-inline-hero .hh-cta-button:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 36px rgba(0,153,255,.33);
}

#hh-inline-hero .hh-cta-button:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px var(--ring), 0 10px 28px rgba(0,153,255,.28);
}

/* ---- Microcopy + Warteliste ---- */
#hh-inline-hero .hh-cta-micro{
  display:block;
  margin:8px auto 0;
  color:#b8c3d6;
  font-size:12.5px;
}

#hh-inline-hero .hh-waitlist-note{
  margin:6px auto 0;
  color:#c8d3e6;
  font-size:13px;
  max-width:640px;
}

#hh-inline-hero .hh-waitlist-note em{
  font-style:normal;
  color:#a5b4fc;
}

/* ---- Scroll-Hint ---- */
#hh-inline-hero .hh-scroll-hint{
  margin-top:28px;
  color:#b8c3d6;
  font-size:14px;
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
}

#hh-inline-hero .hh-scroll-hint svg{
  width:20px; height:20px;
  fill:#b8c3d6;
  animation:hh-bounce 1.5s infinite;
}

/* ---- Modal ---- */
#hh-inline-hero .hh-modal-overlay{
  position:fixed;
  inset:0;
  background:var(--overlay);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:1000;
  opacity:0;
  visibility:hidden;
  transition:opacity .3s ease, visibility .3s ease;
  pointer-events:none;
}

#hh-inline-hero .hh-modal-overlay.hh-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

#hh-inline-hero .hh-tooltip-modal-content{
  background:#000;
  color:#fff;
  border-radius:12px;
  padding:24px;
  width:min(92vw,480px);
  border:1px solid rgba(59,130,246,.25);
  position:relative;
}

#hh-inline-hero .hh-modal-close-button{
  position:absolute;
  top:12px; right:12px;
  background:none;
  border:none;
  font-size:28px;
  color:#cbd5e1;
  cursor:pointer;
}

/* ---- Keyframes ---- */
@keyframes hh-bounce{
  0%,20%,50%,80%,100%{transform:translateY(0)}
  40%{transform:translateY(-8px)}
  60%{transform:translateY(-4px)}
}

@keyframes hh-popUp{
  0%{transform:scale(.6) translateY(20px);opacity:0}
  50%{transform:scale(1.2) translateY(-8px);opacity:1}
  100%{transform:scale(1) translateY(0);opacity:1}
}

@keyframes hh-pulse{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(250,204,21,0)}
  50%{transform:scale(1.06);box-shadow:0 0 0 8px rgba(250,204,21,.12)}
  100%{transform:scale(1);box-shadow:0 0 0 0 rgba(250,204,21,0)}
}

/* ---- Responsive ---- */
@media (max-width:768px){
  #hh-inline-hero .hh-hero-section{
    padding:70px 16px 52px;
    border-radius:22px;
  }
  #hh-inline-hero .hh-cta-micro{ font-size:12px; }
  #hh-inline-hero .hh-waitlist-note{ font-size:12.5px; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce){
  #hh-inline-hero *{
    animation:none !important;
    transition:none !important;
  }
}
