/* ============================================================
   H&H Ersparnis-Vergleicher – Plugin-Styles
   THEME-INTEGRATION:
   - Schrift: erbt die Schriftfamilie des Themes (font-family:
     inherit auf dem Widget, keine eigene Schrift-Einbindung).
   - Farben: ziehen standardmäßig die Elementor Global Colors
     (--e-global-color-primary/-secondary/-text). Fallback sind
     die H&H-Markenfarben. Über das Elementor-Widget lassen sich
     die Werte je Instanz überschreiben (setzt --hhw-strom usw.).
   - Abgeleitete Töne (dunkler/heller) entstehen per color-mix();
     für ältere Browser sind statische Fallbacks hinterlegt.
   ============================================================ */
.hhw{
  /* Basisfarben: Global Colors → Fallback H&H */
  --hhw-strom: var(--e-global-color-primary, #73a373);
  --hhw-gas:   var(--e-global-color-secondary, #023b6c);
  --hhw-text:  var(--e-global-color-text, #1f2a1f);

  /* aktive Palette (Strom-Modus) + statische Fallbacks */
  --c: var(--hhw-strom);
  --c-dark:#4e7a4e; --c-light:#edf4ed; --c-border:#d3e2d3; --c-line:#e2ece2;
  --c-dark:  color-mix(in srgb, var(--c) 72%, #000);
  --c-light: color-mix(in srgb, var(--c) 11%, #fff);
  --c-border:color-mix(in srgb, var(--c) 28%, #fff);
  --c-line:  color-mix(in srgb, var(--c) 16%, #fff);
  --text: var(--hhw-text);
  --grey: #6b7a6b;
  --grey: color-mix(in srgb, var(--hhw-text) 55%, #fff);

  display:block;
  width:100%;
  max-width:100%;
  margin:0 auto;
  background:#fff;
  border-radius:16px;
  box-shadow:0 8px 40px rgba(30,50,40,.14);
  overflow:hidden;
  font-family:inherit;           /* Theme-Schrift übernehmen */
  font-size:16px;
  line-height:1.5;
  color:var(--text);
  text-align:left;
}
.hhw.mode-gas{
  --c: var(--hhw-gas);
  --c-dark:#012543; --c-light:#e6eef7; --c-border:#c9d8e8; --c-line:#dbe6f0;
  --c-dark:  color-mix(in srgb, var(--c) 72%, #000);
  --c-light: color-mix(in srgb, var(--c) 9%, #fff);
  --c-border:color-mix(in srgb, var(--c) 24%, #fff);
  --c-line:  color-mix(in srgb, var(--c) 14%, #fff);
}
@media (min-width:600px) and (max-width:1180px){
  .hhw{font-size:19px;}
  .hhw select, .hhw input[type=text], .hhw input[type=email], .hhw input[type=tel], .hhw input[type=number]{padding:14px 16px;}
  .hhw .hhw-btn{padding:17px;}
  .hhw .hhw-presets button{padding:14px 6px;}
  .hhw .hhw-tab{padding:15px 8px 16px;}
  .hhw input[type=range]{min-height:44px;}
}
@media (min-width:1181px){ .hhw{font-size:17px;} }

.hhw *, .hhw *::before, .hhw *::after{ box-sizing:border-box; margin:0; padding:0; }

/* ============================================================
   OVERFLOW-SCHUTZ MOBIL
   Elementor-Container sind Flexbox – Flex-Items haben min-width:auto
   und können dadurch breiter als der Viewport werden ("rechts
   abgeschnitten"). Diese Regeln neutralisieren das für beide Widgets
   und erzwingen mobil die volle, aber nie größere Containerbreite.
   ============================================================ */
.elementor-widget-hh_vergleicher,
.elementor-widget-hh_vergleicher_quick{ min-width:0 !important; max-width:100% !important; }
.elementor-widget-hh_vergleicher > .elementor-widget-container,
.elementor-widget-hh_vergleicher_quick > .elementor-widget-container{ max-width:100% !important; overflow-x:clip; }
.hhw, .hhw-quick{ min-width:0; box-sizing:border-box; }
.hhw select, .hhw input, .hhw .hhw-presets button, .hhw .hhw-aud-card,
.hhw .hhw-tab, .hhw .hhw-btn{ min-width:0; }
@media (max-width:767px){
  .hhw, .hhw-quick{ width:100% !important; max-width:100% !important; }
}
.hhw .hhw-head, .hhw .hhw-result, .hhw .hhw-btn, .hhw .hhw-call-btn, .hhw .hhw-tab,
.hhw select, .hhw .hhw-presets button, .hhw .hhw-aud-card{ transition:background .35s ease, border-color .35s ease, color .35s ease; }

/* Umbruch-Sicherheitsnetz: Theme-/Kit-CSS setzt Buttons teils auf nowrap */
.hhw button, .hhw button span{ white-space:normal !important; }
.hhw button{ overflow-wrap:anywhere; }

/* ---------- Kopf ---------- */
.hhw .hhw-head{ background:linear-gradient(135deg,var(--c) 0%,var(--c-dark) 100%); padding:24px 32px; }
.hhw .hhw-title{ color:#fff; font-size:1.45em; font-weight:800; line-height:1.25; }
.hhw .hhw-subtitle{ color:rgba(255,255,255,.92); font-size:.95em; margin-top:6px; }
.hhw .hhw-aud-back{ display:none; font-size:.78em; color:rgba(255,255,255,.85); background:none; border:none; cursor:pointer; margin-top:10px; text-decoration:underline; }
.hhw .hhw-aud-back.show{display:inline-block;}

/* ---------- Vorschalt-Weiche ---------- */
.hhw .hhw-audience{ display:none; padding:32px; }
.hhw .hhw-audience.show{display:block;}
.hhw .hhw-q{ font-weight:700; font-size:1.1em; margin-bottom:16px; }
.hhw .hhw-aud-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.hhw .hhw-aud-card{ border:2px solid var(--c-border); border-radius:14px; background:#fff; padding:26px 18px; cursor:pointer; text-align:center; color:var(--text); font-family:inherit;
  white-space:normal !important; overflow-wrap:anywhere; }
.hhw .hhw-aud-card:hover{ border-color:var(--c); background:var(--c-light); }
.hhw .hhw-aud-card .hhw-ico{ font-size:2em; display:block; margin-bottom:8px; }
.hhw .hhw-aud-card .hhw-t{ font-weight:700; font-size:1.05em; display:block; }
.hhw .hhw-aud-card .hhw-s{ font-size:.82em; color:var(--grey); display:block; margin-top:4px; }

/* ---------- Registerkarten ---------- */
.hhw .hhw-tabs{ display:none; grid-template-columns:1fr 1fr; background:#eceff1; padding:10px 10px 0 10px; gap:6px; }
.hhw .hhw-tabs.show{display:grid;}
.hhw .hhw-tab{ padding:13px 8px 14px; border:none; border-top:3px solid transparent; border-radius:12px 12px 0 0;
  background:#dde3e0; color:#5b6660; font-size:1.05em; font-weight:700; cursor:pointer; font-family:inherit;
  position:relative; top:3px; }
.hhw .hhw-tab:hover{background:#d0d8d4;}
.hhw .hhw-tab.active{ background:#fff; color:var(--c-dark); border-top:3px solid var(--c); top:0; }
.hhw .hhw-tab-sub{ display:block; font-size:.72em; font-weight:400; opacity:.85; margin-top:2px; }

/* ---------- Formular ---------- */
.hhw .hhw-body{ display:none; padding:28px 32px; }
.hhw .hhw-body.show{display:block;}
.hhw label{ display:block; font-weight:600; font-size:.95em; color:var(--text); margin:18px 0 8px; }
.hhw select, .hhw input[type=text], .hhw input[type=email], .hhw input[type=tel], .hhw input[type=number]{
  -webkit-appearance:none; appearance:none; width:100%;
  padding:12px 14px; border:2px solid var(--c-border); border-radius:10px;
  font-size:1em; color:var(--text); background:#fff; font-family:inherit; }
.hhw select{ background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; }
.hhw select:focus, .hhw input:focus{ outline:none; border-color:var(--c); }
.hhw .hhw-presets{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:8px; }
.hhw .hhw-presets.hhw-two{ grid-template-columns:1fr 1fr; }
.hhw .hhw-presets button{ padding:12px 6px; border:2px solid var(--c-border); border-radius:10px;
  background:#fff; color:var(--text); font-size:.85em; cursor:pointer; line-height:1.3; font-family:inherit;
  white-space:normal !important; overflow-wrap:anywhere; text-align:center; }
.hhw .hhw-presets button.active{ border-color:var(--c); background:var(--c-light); font-weight:700; color:var(--c-dark); }
.hhw .hhw-p-sub{ display:block; font-size:.78em; color:var(--grey); font-weight:400; }
.hhw .hhw-kwh-row{ display:flex; align-items:center; gap:14px; margin-top:10px; }
.hhw input[type=range]{ flex:1; width:auto; accent-color:var(--c); border:none; background:transparent; padding:0; }
.hhw .hhw-kwh-val{ min-width:130px; text-align:right; font-weight:700; color:var(--c-dark); }
.hhw .hhw-grid2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.hhw .hhw-hint{ font-size:.78em; color:var(--grey); margin-top:6px; }
.hhw .hhw-mt12{margin-top:12px;}

/* ---------- Ergebnis ---------- */
.hhw .hhw-result{ display:none; margin-top:26px; padding:22px; border-radius:12px; background:var(--c-light); border:2px solid var(--c); text-align:center; }
.hhw .hhw-result.show{ display:block; animation:hhwPop .35s ease; }
@keyframes hhwPop{ from{transform:scale(.96);opacity:0} to{transform:scale(1);opacity:1} }
.hhw .hhw-headline{ font-size:1em; color:var(--text); }
.hhw .hhw-amount{ font-size:2.3em; font-weight:800; color:var(--c-dark); line-height:1.2; margin-top:4px; }
.hhw .hhw-rsub{ color:var(--grey); font-size:.85em; margin-top:6px; }
.hhw .hhw-scenarios{ display:none; margin-top:14px; }
.hhw .hhw-scenarios.show{display:block;}
.hhw .hhw-scen{ display:flex; justify-content:space-between; padding:9px 14px; background:#fff; border:1px solid var(--c-border); border-radius:9px; margin-top:6px; font-size:.92em; }
.hhw .hhw-scen b{ color:var(--c-dark); }

/* ---------- Anruf & Lead ---------- */
.hhw .hhw-call-now{ display:none; margin-top:16px; text-align:center; }
.hhw .hhw-call-now.show{ display:block; animation:hhwPop .35s ease; }
.hhw .hhw-hook{ font-weight:700; margin-bottom:10px; }
.hhw .hhw-call-btn{ display:inline-flex; align-items:center; gap:10px; padding:14px 26px; border-radius:12px;
  background:#fff; border:2px solid var(--c); color:var(--c-dark); font-size:1.15em; font-weight:800; text-decoration:none; }
.hhw .hhw-call-btn:hover{ background:var(--c); color:#fff; }
.hhw .hhw-hours{ font-size:.78em; color:var(--grey); margin-top:6px; }
.hhw .hhw-mail-line{ font-size:.85em; color:var(--grey); margin-top:10px; }
.hhw .hhw-mail-line a{ color:var(--c-dark); font-weight:600; text-decoration:none; }
.hhw .hhw-mail-line a:hover{ text-decoration:underline; }

/* "Direkter Draht"-Störer: persönlicher Kontakt als optionaler Zusatz */
.hhw .hhw-direct{ position:relative; margin-top:22px; padding:16px 18px 14px; border:2px dashed var(--c);
  border-radius:12px; background:var(--c-light); text-align:center; }
.hhw .hhw-direct-badge{ position:absolute; top:-11px; left:50%; transform:translateX(-50%);
  background:var(--c-dark); color:#fff; font-size:.68em; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; padding:3px 14px; border-radius:999px; white-space:nowrap; }
.hhw .hhw-direct-name{ font-size:.9em; font-weight:600; color:var(--text); }
.hhw .hhw-direct-lines{ margin-top:6px; font-size:.92em; display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.hhw .hhw-direct-lines a{ color:var(--c-dark); font-weight:700; text-decoration:none; }
.hhw .hhw-direct-lines a:hover{ text-decoration:underline; }
.hhw .hhw-direct-sep{ color:var(--grey); }
.hhw .hhw-divider{ display:none; align-items:center; gap:12px; margin-top:20px; color:var(--grey); font-size:.82em; }
.hhw .hhw-divider.show{display:flex;}
.hhw .hhw-divider::before,.hhw .hhw-divider::after{ content:""; flex:1; height:1px; background:var(--c-border); }
.hhw .hhw-cta{ margin-top:14px; display:none; }
.hhw .hhw-cta.show{display:block;}
.hhw .hhw-cta-title{ font-size:1.05em; font-weight:700; margin-bottom:4px; }
.hhw .hhw-cta-sub{ font-size:.88em; color:var(--grey); margin-bottom:10px; }
.hhw .hhw-btn{ width:100%; margin-top:16px; padding:15px; border:none; border-radius:10px;
  background:var(--c); color:#fff; font-size:1.05em; font-weight:700; cursor:pointer; font-family:inherit; }
.hhw .hhw-btn:hover{ background:var(--c-dark); }
.hhw .hhw-privacy{ font-size:.75em; color:var(--grey); margin-top:10px; text-align:center; }
.hhw .hhw-disclaimer{ font-size:.72em; color:var(--grey); line-height:1.5; margin-top:18px; border-top:1px solid var(--c-line); padding-top:12px; }
.hhw .hhw-hp-field{ position:absolute; left:-9999px; top:-9999px; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.hhw .hhw-success{ display:none; padding:40px 32px; text-align:center; }
.hhw .hhw-success.show{display:block;}
.hhw .hhw-check{ width:64px; height:64px; border-radius:50%; background:var(--c); color:#fff; font-size:2em; line-height:64px; margin:0 auto 16px; }
.hhw .hhw-thanks{ font-size:1.2em; font-weight:700; }
.hhw .hhw-info{ margin-top:8px; color:var(--grey); font-size:.95em; }

@media(max-width:520px){
  .hhw .hhw-grid2, .hhw .hhw-aud-grid{ grid-template-columns:1fr; }
  .hhw .hhw-presets{ grid-template-columns:repeat(2,1fr); }
  .hhw .hhw-body,.hhw .hhw-head,.hhw .hhw-audience{ padding:20px; }
}

/* ============================================================
   Schnellrechner (Hero-Karte) – weiße Karte für dunkle Heros.
   Übergibt PLZ + Verbrauch an den vollen Vergleicher (Ziel-Anker).
   ============================================================ */
.hhw-quick{
  --c: var(--e-global-color-primary, #73a373);
  --c-dark:#4e7a4e;
  --c-dark: color-mix(in srgb, var(--c) 72%, #000);
  --qborder:#E7E4DB;
  --qmuted:#66736B;
  display:block; background:#fff; border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,.3);
  padding:28px; max-width:420px;
  font-family:inherit; color:#14301F; text-align:left; font-size:16px; line-height:1.5;
}
.hhw-quick *{ box-sizing:border-box; margin:0; padding:0; }
.hhw-quick .hhwq-title{ font-size:1.25em; font-weight:800; }
.hhw-quick .hhwq-sub{ font-size:.85em; color:var(--qmuted); margin-top:2px; }
.hhw-quick label{ display:block; font-weight:600; font-size:.72em; letter-spacing:.08em;
  text-transform:uppercase; color:var(--qmuted); margin:16px 0 6px; }
.hhw-quick input{ -webkit-appearance:none; appearance:none; width:100%;
  padding:13px 14px; border:2px solid var(--qborder); border-radius:10px;
  font-size:1em; font-family:inherit; background:#fff; color:inherit; }
.hhw-quick input:focus{ outline:none; border-color:var(--c); }
.hhw-quick .hhwq-btn{ width:100%; margin-top:18px; padding:15px; border:none; border-radius:10px;
  background:var(--c); color:#fff; font-size:1em; font-weight:700; cursor:pointer; font-family:inherit;
  transition:background .2s; }
.hhw-quick .hhwq-btn:hover{ background:var(--c-dark); }
.hhw-quick .hhwq-note{ font-size:.75em; color:var(--qmuted); text-align:center; margin-top:10px; }
