/* ========================================================================
   LUMIS ENERGIE — hero.css  (Design-Update FINAL_3)
   Navy-Hero + animierte Visuals · Tarifrechner-Karte · Social-Proof · USP
   ======================================================================== */

/* ── Hero (Navy, animiert) ───────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(232,80,10,0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 56px 0 64px;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero-copy h1 { margin-bottom: 16px; color: #fff; }
.hero-copy .hero-sub { font-size: clamp(14px,2vw,18px); color: rgba(255,255,255,0.72); max-width: 44ch; margin-bottom: 22px; }
.hero-copy .hero-outcome { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: #fff; background: rgba(232,80,10,0.16); border: 1px solid rgba(232,80,10,0.4); padding: 9px 18px; border-radius: 999px; }
.hero-copy .hero-outcome .dot { width: 9px; height: 9px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,0.25); flex-shrink: 0; }

/* Animierte Layer */
.hero-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.e-line { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(232,80,10,0.45), transparent); animation: scan 5s ease-in-out infinite; }
.e-line:nth-child(1) { top: 26%; animation-delay: 0s; }
.e-line:nth-child(2) { top: 54%; animation-delay: 1.6s; }
.e-line:nth-child(3) { top: 78%; animation-delay: 3.2s; }
@keyframes scan { 0% { transform: translateX(-100%); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(200%); opacity: 0; } }

.orb { position: absolute; border-radius: 50%; filter: blur(46px); pointer-events: none; animation: orb-float 8s ease-in-out infinite; }
.orb-1 { width: 340px; height: 340px; background: rgba(232,80,10,0.22); top: -80px; right: 4%; }
.orb-2 { width: 260px; height: 260px; background: rgba(30,45,74,0.9); bottom: -100px; left: 8%; animation-delay: 2s; }
.orb-3 { width: 180px; height: 180px; background: rgba(232,80,10,0.14); top: 40%; left: 44%; animation-delay: 4s; }
@keyframes orb-float { 0%,100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.08) translateY(-12px); } }

#hero-particles { position: absolute; inset: 0; }
@keyframes particle-rise { 0% { transform: translateY(0) scale(1); opacity: .6; } 100% { transform: translateY(-120px) scale(0); opacity: 0; } }

/* ── Tarifrechner-Widget (weisse Karte auf Navy) ─────────────────────── */
.tarifrechner { background: var(--white); border: 1px solid var(--border); border-radius: var(--lumis-radius-lg); box-shadow: var(--lumis-shadow-lg); padding: 26px; }
.tr-tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--off-white); padding: 6px; border-radius: var(--lumis-radius-md); }
.tr-tab { flex: 1; padding: 11px; border: none; background: transparent; border-radius: var(--lumis-radius-sm); font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, color .15s; }
.tr-tab.active { background: var(--navy); color: #fff; box-shadow: var(--lumis-shadow); }

.tr-field { margin-bottom: 16px; }
.tr-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.tr-field input, .tr-field select { width: 100%; min-height: 48px; padding: 12px 14px; font-family: var(--font-body); border: 1.5px solid var(--border); border-radius: var(--lumis-radius-md); background: var(--white); color: var(--text); transition: border-color .15s; }
.tr-field input:focus, .tr-field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.tr-helper { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.tr-error { font-size: 0.82rem; color: #dc2626; margin-top: 6px; display: none; }
.tr-error.show { display: block; }

.tr-type { display: flex; gap: 10px; }
.tr-type label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 11px; border: 1.5px solid var(--border); border-radius: var(--lumis-radius-md); font-weight: 500; font-size: 0.95rem; transition: all .15s; margin: 0; }
.tr-type input { position: absolute; opacity: 0; pointer-events: none; }
.tr-type label:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); color: var(--orange-hover); font-weight: 700; }

.tr-submit { width: 100%; margin-top: 6px; }
.tr-trust { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 16px; font-size: 0.85rem; color: var(--muted); }
.tr-trust span { display: inline-flex; align-items: center; gap: 5px; }

/* ── Social-Proof Streifen ───────────────────────────────────────────── */
.social-proof { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 28px 0; text-align: center; }
.sp-item .sp-icon { font-size: 1.6rem; }
.sp-item .sp-num { font-family: var(--font-display); font-size: clamp(20px, 5vw, 34px); font-weight: 900; color: var(--text); letter-spacing: -0.02em; }
.sp-item .sp-num span { color: var(--orange); }
.sp-item .sp-label { font-size: 0.9rem; color: var(--muted); }
.sp-stars { text-align: center; padding-bottom: 22px; color: var(--muted); font-size: 0.95rem; }
.sp-stars strong { color: var(--text); }
.sp-stars .stars { color: var(--orange); letter-spacing: 2px; }

/* ── So funktioniert's ───────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.step-card { text-align: center; padding: 28px 20px; }
.step-num { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; font-family: var(--font-display); }
.step-card h3 { margin-bottom: 8px; }

/* ── Mini-Tarifrechner (Strom/Gas-Sektion) ───────────────────────────── */
.mini-tr { background: var(--white); border: 1px solid var(--border); border-radius: var(--lumis-radius-lg); padding: 24px; box-shadow: var(--lumis-shadow); }
.mini-tr-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-section.reverse .split-copy { order: 2; }

/* ── USP-Grid ────────────────────────────────────────────────────────── */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.usp-item { text-align: center; padding: 8px 12px; }
.usp-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; background: rgba(232,80,10,0.14); color: var(--orange); }
.usp-ic svg { width: 26px; height: 26px; }
.usp-item h4 { margin-bottom: 6px; font-weight: 700; }
.usp-item p { font-size: 0.9rem; color: var(--muted); }

/* ── Navy-Anker-Sektion ──────────────────────────────────────────────── */
.section-navy { background: var(--navy); }
.section-navy .section-head h2 { color: #fff; }
.section-navy .section-head p { color: rgba(255,255,255,0.7); }
.section-navy .eyebrow { color: var(--orange); }
.section-navy .usp-item h4 { color: #fff; }
.section-navy .usp-item p { color: rgba(255,255,255,0.68); }

/* ── Beratungs-Teaser ────────────────────────────────────────────────── */
.advisor-teaser { background: var(--lumis-accent-bg); border-radius: var(--lumis-radius-lg); padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.advisor-teaser .advisor-photo { text-align: center; }
.advisor-teaser .advisor-photo img { width: 130px; height: 130px; border-radius: var(--lumis-radius-lg); object-fit: cover; margin: 0 auto 12px; box-shadow: var(--lumis-shadow); }
.advisor-teaser .advisor-name { font-weight: 800; }
.advisor-teaser .advisor-role { font-size: 0.85rem; color: var(--muted); }
.advisor-teaser h2 { margin-bottom: 12px; }
.advisor-teaser p { color: var(--muted); margin-bottom: 20px; max-width: 52ch; }

/* ── Section-Header ──────────────────────────────────────────────────── */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 8px; }
.section-head .eyebrow { display: block; margin-bottom: 8px; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ══ RESPONSIVE ══════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 24px; }
  .split-section.reverse .split-copy { order: 0; }
  .advisor-teaser { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; }
  .advisor-teaser p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 44px; }
  .usp-grid { grid-template-columns: 1fr; }
  .mini-tr-row { grid-template-columns: 1fr 1fr; }
  .mini-tr-row .btn { grid-column: 1 / -1; width: 100%; }
  .sp-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sp-item { padding: 4px; }
  .sp-item .sp-num { font-size: 20px; }
  .sp-item .sp-label { font-size: 0.72rem; }
  .sp-item .sp-icon { font-size: 1.2rem; }
}

/* ── Hero: gestapeltes Layout (Copy zentriert, Widget breit darunter) ── */
.hero-stack { position: relative; z-index: 2; }
.hero-stack .hero-copy { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.hero-stack .hero-copy .hero-sub { margin-left: auto; margin-right: auto; }
.hero-stack .calc-widget { position: relative; z-index: 3; margin-bottom: -62px; }
.hero + .social-proof { padding-top: 78px; }
@media (max-width: 560px) {
  .hero-stack .calc-widget { margin-bottom: -40px; }
  .hero + .social-proof { padding-top: 56px; }
}

/* ── Lifestyle-/Vertrauens-Sektion ───────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.trust-img img { width: 100%; height: auto; border-radius: var(--lumis-radius-lg); box-shadow: var(--lumis-shadow-lg); object-fit: cover; }
.trust-copy .eyebrow { display: block; margin-bottom: 10px; }
.trust-copy h2 { margin-bottom: 14px; }
.trust-list { margin: 18px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.trust-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.trust-list li::before { content: '✓'; color: var(--orange); font-weight: 800; }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr; gap: 26px; }
  .trust-img { order: -1; }
}
