/* ==========================================================================
   TOMATHERM – Wärmepumpen-Wizard
   Eigenständiges Stylesheet, passt sich an das bestehende CI an
   (Primary #0c3145, Secondary #2792c3, Dark-Theme, Calibri, Glass-Effect)
   ========================================================================== */

/* ===== Modal-Hülle (für Pop-up Variante) ===== */
.wpw-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: stretch;
  justify-content: center;
  background: rgba(5, 9, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 0;
}

.wpw-modal.is-open {
  display: flex;
  opacity: 1;
}

body.wpw-no-scroll {
  overflow: hidden;
}

.wpw-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: auto;
  padding: 24px 16px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpw-modal.is-open .wpw-modal__dialog {
  transform: translateY(0);
}

.wpw-modal__close {
  position: absolute;
  top: 32px;
  right: 24px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wpw-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.06);
}

/* ===== Standalone-Page Wrapper ===== */
.wpw-page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(39, 146, 195, 0.15), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(12, 49, 69, 0.6), transparent 60%),
    var(--dark-bg, #0a101f);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 64px;
  font-family: "Calibri", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body, #a8b5c8);
}

.wpw-page__header {
  width: 100%;
  max-width: 920px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.wpw-page__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.wpw-page__brand img {
  height: 36px;
  width: auto;
}

.wpw-page__back {
  color: var(--text-body, #a8b5c8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.wpw-page__back:hover {
  color: var(--secondary-color, #2792c3);
}

/* ===== Card / Inner-Container ===== */
.wpw {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  background: var(--card-bg, #161d31);
  border: 1px solid var(--card-border, rgba(136, 157, 184, 0.2));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  color: var(--text-body, #a8b5c8);
  font-family: "Calibri", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== Header inside Wizard ===== */
.wpw__header {
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--card-border, rgba(136, 157, 184, 0.18));
  background: linear-gradient(180deg, rgba(39, 146, 195, 0.08), transparent);
}

.wpw__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-color, #2792c3);
  font-weight: 700;
  margin-bottom: 8px;
}

.wpw__title {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.25;
}

.wpw__subtitle {
  font-size: 0.95rem;
  color: var(--text-body, #a8b5c8);
  margin: 0;
}

/* Progress */
.wpw__progress {
  margin-top: 18px;
}

.wpw__progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-body, #a8b5c8);
  margin-bottom: 6px;
}

.wpw__progress-meta strong {
  color: #fff;
  font-weight: 600;
}

.wpw__progress-bar {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.wpw__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary-color, #2792c3), #5ab8e0);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Body ===== */
.wpw__body {
  padding: 28px 32px 12px;
  min-height: 320px;
  position: relative;
}

/* Step animation */
.wpw__step {
  display: none;
  animation: wpwFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpw__step.is-active {
  display: block;
}

@keyframes wpwFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wpw__step-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.wpw__step-hint {
  font-size: 0.92rem;
  color: var(--text-body, #a8b5c8);
  margin: 0 0 22px;
}

/* ===== Cards (Optionsauswahl) ===== */
.wpw__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.wpw__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 22px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(136, 157, 184, 0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 130px;
  user-select: none;
}

.wpw__card:hover {
  border-color: var(--secondary-color, #2792c3);
  background: rgba(39, 146, 195, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wpw__card.is-selected {
  border-color: var(--secondary-color, #2792c3);
  background: rgba(39, 146, 195, 0.15);
  box-shadow: 0 0 0 1px var(--secondary-color, #2792c3) inset;
}

.wpw__card.is-selected::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: var(--secondary-color, #2792c3);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
}

.wpw__card-icon {
  width: 44px;
  height: 44px;
  color: var(--secondary-color, #2792c3);
}

.wpw__card-label {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

.wpw__card-desc {
  font-size: 0.82rem;
  color: var(--text-body, #a8b5c8);
  font-weight: 400;
}

/* Smaller card variant for Yes/No */
.wpw__cards--compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 420px;
}

.wpw__cards--compact .wpw__card {
  min-height: 90px;
  padding: 16px;
}

/* ===== Form Elements ===== */
.wpw__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.wpw__grid-full {
  grid-column: 1 / -1;
}

.wpw__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wpw__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.wpw__label .wpw__req {
  color: #ff6b6b;
  margin-left: 2px;
}

.wpw__input,
.wpw__select,
.wpw__textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(136, 157, 184, 0.22);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.wpw__textarea {
  resize: vertical;
  min-height: 110px;
}

.wpw__input::placeholder,
.wpw__textarea::placeholder {
  color: rgba(168, 181, 200, 0.55);
}

.wpw__input:focus,
.wpw__select:focus,
.wpw__textarea:focus {
  border-color: var(--secondary-color, #2792c3);
  background: rgba(39, 146, 195, 0.06);
  box-shadow: 0 0 0 3px rgba(39, 146, 195, 0.18);
}

.wpw__input.is-error,
.wpw__select.is-error,
.wpw__textarea.is-error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}

.wpw__select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a8b5c8'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}

.wpw__select option {
  background: var(--card-bg, #161d31);
  color: #fff;
}

.wpw__error-msg {
  display: none;
  color: #ff8a8a;
  font-size: 0.8rem;
  margin-top: 2px;
}

.wpw__field.has-error .wpw__error-msg {
  display: block;
}

/* Input groups (Wert + Einheit) */
.wpw__input-group {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.wpw__input-suffix {
  position: relative;
}

.wpw__input-suffix::after {
  content: attr(data-suffix);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-body, #a8b5c8);
  font-size: 0.9rem;
  pointer-events: none;
}

.wpw__input-suffix .wpw__input {
  padding-right: 48px;
}

/* ===== Checkbox / Consent ===== */
.wpw__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(136, 157, 184, 0.18);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wpw__check:hover {
  border-color: rgba(39, 146, 195, 0.5);
  background: rgba(39, 146, 195, 0.06);
}

.wpw__check.has-error {
  border-color: #ff6b6b;
}

.wpw__check + .wpw__check {
  margin-top: 10px;
}

.wpw__check input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--secondary-color, #2792c3);
  cursor: pointer;
}

.wpw__check-text {
  font-size: 0.92rem;
  color: var(--text-body, #a8b5c8);
  line-height: 1.5;
}

.wpw__check-text a {
  color: var(--secondary-color, #2792c3);
  text-decoration: underline;
}

/* ===== Upload ===== */
.wpw__upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  border: 2px dashed rgba(136, 157, 184, 0.4);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.25s ease;
}

.wpw__upload:hover,
.wpw__upload.is-drag {
  border-color: var(--secondary-color, #2792c3);
  background: rgba(39, 146, 195, 0.08);
}

.wpw__upload svg {
  width: 42px;
  height: 42px;
  color: var(--secondary-color, #2792c3);
  margin-bottom: 10px;
}

.wpw__upload-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.wpw__upload-hint {
  font-size: 0.82rem;
  color: var(--text-body, #a8b5c8);
}

.wpw__upload input[type="file"] {
  display: none;
}

.wpw__files {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wpw__file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(136, 157, 184, 0.2);
}

.wpw__file-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--secondary-color, #2792c3);
}

.wpw__file-info {
  flex: 1;
  min-width: 0;
}

.wpw__file-name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wpw__file-size {
  font-size: 0.78rem;
  color: var(--text-body, #a8b5c8);
}

.wpw__file-remove {
  background: transparent;
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ff8a8a;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.wpw__file-remove:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: #ff6b6b;
}

/* ===== Summary ===== */
.wpw__summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wpw__summary-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(136, 157, 184, 0.18);
  padding: 16px 18px;
}

.wpw__summary-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wpw__summary-group h4 {
  color: var(--secondary-color, #2792c3);
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.wpw__summary-edit {
  background: transparent;
  border: none;
  color: var(--text-body, #a8b5c8);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.wpw__summary-edit:hover {
  color: var(--secondary-color, #2792c3);
}

.wpw__summary-list {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6px 12px;
  font-size: 0.92rem;
}

.wpw__summary-list dt {
  color: var(--text-body, #a8b5c8);
}

.wpw__summary-list dd {
  color: #fff;
  margin: 0;
  word-break: break-word;
}

/* ===== Footer / Navigation ===== */
.wpw__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 32px 24px;
  border-top: 1px solid var(--card-border, rgba(136, 157, 184, 0.18));
  background: rgba(0, 0, 0, 0.18);
}

.wpw__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  min-height: 48px;
}

.wpw__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wpw__btn--primary {
  background: var(--primary-color, #0c3145);
  color: #fff;
}

.wpw__btn--primary:hover:not(:disabled) {
  background: var(--secondary-color, #2792c3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(39, 146, 195, 0.3);
}

.wpw__btn--ghost {
  background: transparent;
  color: var(--text-body, #a8b5c8);
  border: 1.5px solid rgba(136, 157, 184, 0.3);
}

.wpw__btn--ghost:hover:not(:disabled) {
  border-color: var(--secondary-color, #2792c3);
  color: #fff;
  background: rgba(39, 146, 195, 0.08);
}

.wpw__btn-icon {
  width: 18px;
  height: 18px;
}

/* Honeypot */
.wpw__hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ===== Notice ===== */
.wpw__notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb0b0;
  font-size: 0.9rem;
  display: none;
}

.wpw__notice.is-visible {
  display: block;
}

/* ===== Success view ===== */
.wpw__success {
  text-align: center;
  padding: 32px 16px 16px;
  animation: wpwFadeIn 0.5s ease;
}

.wpw__success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 196, 134, 0.12);
  border: 2px solid rgba(46, 196, 134, 0.55);
  border-radius: 50%;
  position: relative;
}

.wpw__success-icon svg {
  width: 48px;
  height: 48px;
  color: #2ec486;
  animation: wpwCheckPop 0.55s cubic-bezier(0.5, 1.8, 0.5, 1) 0.1s both;
}

@keyframes wpwCheckPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wpw__success h3 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 10px;
}

.wpw__success p {
  color: var(--text-body, #a8b5c8);
  max-width: 480px;
  margin: 0 auto 22px;
  line-height: 1.55;
}

/* ===== Loader overlay ===== */
.wpw__loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: rgba(14, 22, 41, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.wpw__loader.is-visible {
  display: flex;
}

.wpw__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--secondary-color, #2792c3);
  border-radius: 50%;
  animation: wpwSpin 0.85s linear infinite;
}

@keyframes wpwSpin {
  to { transform: rotate(360deg); }
}

.wpw__loader-text {
  color: #fff;
  font-size: 0.95rem;
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .wpw__header,
  .wpw__body,
  .wpw__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .wpw__title {
    font-size: 1.2rem;
  }

  .wpw__grid {
    grid-template-columns: 1fr;
  }

  .wpw__cards {
    grid-template-columns: 1fr 1fr;
  }

  .wpw__cards--compact {
    grid-template-columns: 1fr 1fr;
  }

  .wpw__summary-list {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .wpw__summary-list dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 6px;
  }

  .wpw__footer {
    flex-direction: column-reverse;
  }

  .wpw__btn {
    width: 100%;
  }

  .wpw-modal__dialog {
    padding: 12px 8px;
  }

  .wpw-modal__close {
    top: 18px;
    right: 14px;
  }
}

@media (max-width: 420px) {
  .wpw__cards {
    grid-template-columns: 1fr;
  }
  .wpw__cards--compact {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .wpw__input-group {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Hero-Buttons (Stack-Variante) – zentriert mit prominentem Wizard-Button
   ========================================================================== */
.hero-buttons.hero-buttons--stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.hero-buttons.hero-buttons--stack > .btn-secondary {
  min-width: 280px;
  max-width: 360px;
  width: 100%;
}

/* Prominenter Wizard-Button im Hero (zentriert zwischen den weißen Buttons) */
.hero-cta-wizard {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 320px;
  width: 100%;
  max-width: 460px;
  padding: 18px 28px !important;
  background: linear-gradient(135deg, #0c3145 0%, #134c6a 50%, #2792c3 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 8px 28px rgba(12, 49, 69, 0.55),
    0 0 0 0 rgba(39, 146, 195, 0.55);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: wpwHeroPulse 2.6s ease-in-out infinite;
}

.hero-cta-wizard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.hero-cta-wizard:hover {
  background: linear-gradient(135deg, #2792c3 0%, #134c6a 50%, #0c3145 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow:
    0 14px 36px rgba(39, 146, 195, 0.45),
    0 0 0 4px rgba(39, 146, 195, 0.18) !important;
  animation: none;
}

.hero-cta-wizard:hover::before {
  transform: translateX(100%);
}

.hero-cta-wizard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-cta-wizard__icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.hero-cta-wizard__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.hero-cta-wizard__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-cta-wizard__sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

@keyframes wpwHeroPulse {
  0%, 100% {
    box-shadow:
      0 8px 28px rgba(12, 49, 69, 0.55),
      0 0 0 0 rgba(39, 146, 195, 0.55);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(12, 49, 69, 0.55),
      0 0 0 10px rgba(39, 146, 195, 0);
  }
}

@media (max-width: 520px) {
  .hero-cta-wizard {
    min-width: 0;
    padding: 16px 18px !important;
    gap: 12px;
  }
  .hero-cta-wizard__icon {
    width: 38px;
    height: 38px;
  }
  .hero-cta-wizard__icon svg {
    width: 18px;
    height: 18px;
  }
  .hero-cta-wizard__title {
    font-size: 0.95rem;
  }
  .hero-cta-wizard__sub {
    font-size: 0.72rem;
  }
  .hero-buttons.hero-buttons--stack > .btn-secondary {
    min-width: 0;
  }
}

/* ==========================================================================
   Wärmepumpen-CTA-Sektion (eigene "Top"-Sektion direkt nach Hero)
   ========================================================================== */
.wpw-hero-cta {
  position: relative;
  padding: 70px 0 80px;
  background:
    radial-gradient(900px 500px at 12% 10%, rgba(39, 146, 195, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(12, 49, 69, 0.65), transparent 60%),
    linear-gradient(180deg, #0a101f 0%, #0e1629 100%);
  overflow: hidden;
  isolation: isolate;
}

.wpw-hero-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1000px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(39, 146, 195, 0.55) 50%,
    transparent 100%
  );
}

.wpw-hero-cta__inner {
  position: relative;
  z-index: 1;
}

.wpw-hero-cta__content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wpw-hero-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(39, 146, 195, 0.12);
  border: 1px solid rgba(39, 146, 195, 0.4);
  color: #5ab8e0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.wpw-hero-cta__badge-dot {
  width: 8px;
  height: 8px;
  background: #2792c3;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(39, 146, 195, 0.7);
  animation: wpwDotPulse 1.8s ease-out infinite;
}

@keyframes wpwDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(39, 146, 195, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(39, 146, 195, 0); }
}

.wpw-hero-cta__title {
  color: #fff !important;
  font-size: clamp(1.9rem, 4.2vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin: 0 0 14px !important;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
}

.wpw-hero-cta__title-accent {
  background: linear-gradient(135deg, #2792c3, #5ab8e0) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.wpw-hero-cta__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-body, #a8b5c8);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.wpw-hero-cta__features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 36px;
  padding: 0;
}

.wpw-hero-cta__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(136, 157, 184, 0.18);
  color: var(--text-body, #a8b5c8);
  font-size: 0.92rem;
  text-align: left;
  transition: all 0.25s ease;
}

.wpw-hero-cta__features li:hover {
  border-color: rgba(39, 146, 195, 0.5);
  background: rgba(39, 146, 195, 0.06);
  transform: translateY(-2px);
}

.wpw-hero-cta__features svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #2792c3;
}

.wpw-hero-cta__features strong {
  color: #fff;
  font-weight: 600;
}

/* Aktionsleiste: linker weißer Button | großer blauer | rechter weißer */
.wpw-hero-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 22px;
}

.wpw-hero-cta__btn-ghost {
  flex: 0 1 220px;
  min-height: 64px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Großer prominenter Wizard-Button in der Mitte */
.wpw-hero-cta__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: linear-gradient(135deg, #0c3145 0%, #134c6a 50%, #2792c3 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
  box-shadow:
    0 12px 36px rgba(12, 49, 69, 0.6),
    0 0 0 0 rgba(39, 146, 195, 0.55);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  flex: 1 1 360px;
  max-width: 460px;
  min-height: 64px;
  animation: wpwHeroPulse 2.6s ease-in-out infinite;
}

.wpw-hero-cta__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.wpw-hero-cta__btn:hover {
  background: linear-gradient(135deg, #2792c3 0%, #134c6a 50%, #0c3145 100%);
  transform: translateY(-3px);
  box-shadow:
    0 16px 44px rgba(39, 146, 195, 0.5),
    0 0 0 4px rgba(39, 146, 195, 0.18);
  animation: none;
}

.wpw-hero-cta__btn:hover::before {
  transform: translateX(100%);
}

.wpw-hero-cta__btn:hover .wpw-hero-cta__btn-arrow {
  transform: translateX(6px);
}

.wpw-hero-cta__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.wpw-hero-cta__btn-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.wpw-hero-cta__btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  line-height: 1.2;
}

.wpw-hero-cta__btn-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wpw-hero-cta__btn-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.wpw-hero-cta__btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.wpw-hero-cta__btn-arrow svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.wpw-hero-cta__meta {
  font-size: 0.86rem;
  color: var(--text-body, #a8b5c8);
  margin: 0;
}

.wpw-hero-cta__meta strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 720px) {
  .wpw-hero-cta {
    padding: 50px 0 60px;
  }
  .wpw-hero-cta__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .wpw-hero-cta__btn-ghost,
  .wpw-hero-cta__btn {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
  .wpw-hero-cta__btn {
    order: -1; /* großer Button oben in der mobilen Ansicht */
    padding: 16px 18px;
    gap: 12px;
  }
  .wpw-hero-cta__features {
    grid-template-columns: 1fr;
  }
  .wpw-hero-cta__btn-icon {
    width: 38px;
    height: 38px;
  }
  .wpw-hero-cta__btn-arrow {
    width: 26px;
    height: 26px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wpw-modal,
  .wpw-modal__dialog,
  .wpw__step,
  .wpw__progress-fill,
  .wpw__card,
  .wpw__btn,
  .hero-cta-wizard,
  .wpw-hero-cta__btn,
  .wpw-hero-cta__badge-dot,
  .wpw-hero-cta__features li,
  .wpw-hero-cta__btn-arrow {
    transition: none !important;
    animation: none !important;
  }
}
