.hero-offer-toggle,
.hero-offer-phone-label,
#hero-offer-panel { display: none; }

@media (min-width: 1025px) {
  .hero-offer-ready .hero-offer-toggle { display: inline-flex; }
  .hero-offer-ready .hero-offer-fallback { display: none; }

  #hero-offer { position: relative; }

  #hero-offer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
  }

  .hero-offer-stage {
    display: grid;
    min-height: 368px;
    margin-bottom: 12px;
  }

  #hero-offer::before,
  #hero-offer-intro,
  #hero-offer-panel {
    transition: opacity var(--hero-offer-fade, 360ms cubic-bezier(0.22, 1, 0.36, 1));
  }

  #hero-offer-intro { position: relative; align-self: center; }

  #hero-offer-panel {
    display: block;
    position: absolute;
    inset: 0 0 78px;
    z-index: 1;
    padding: 24px 28px 12px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    opacity: 0;
    pointer-events: none;
  }

  #hero-offer.hero-offer-open::before { opacity: 1; }
  .hero-offer-open #hero-offer-intro { opacity: 0; }
  .hero-offer-open #hero-offer-panel { opacity: 1; pointer-events: auto; }

  #hero-offer .hero-offer-toggle {
    align-items: center;
    justify-content: center;
    inline-size: 196px;
    flex-shrink: 0;
    block-size: 56px;
    border: 1px solid transparent;
    cursor: pointer;
  }

  #hero-offer.hero-offer-manual .hero-offer-toggle {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    inline-size: auto;
    block-size: 40px;
    padding: 0 10px;
    gap: 6px;
    background: #f1f6f3 !important;
    color: #064d29 !important;
    border: 1px solid #d8e5de;
    font-size: 13px;
    box-shadow: none !important;
  }

  #hero-offer.hero-offer-manual .hero-offer-toggle::before {
    content: "×";
    font-size: 20px;
    line-height: 1;
  }

  #hero-offer .hs-hero2-cta { min-height: 56px; flex-wrap: nowrap; }
  #hero-offer .hs-hero2-phone { flex-shrink: 0; }

  #hero-offer.hero-offer-manual .hs-hero2-cta { justify-content: space-between; }

  #hero-offer.hero-offer-manual .hs-hero2-phone,
  #hero-offer.hero-offer-manual .hero-offer-phone-label {
    position: relative;
    background: #fff;
    color: #064d29;
  }

  #hero-offer.hero-offer-manual .hero-offer-phone-label {
    display: inline;
    font-size: 14px;
  }

  #hero-offer.hero-offer-manual .hs-hero2-phone { text-decoration: underline; }
  #hero-offer :is(button, a, input, select):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

  body #hero-offer-panel .hs-funnel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
    backdrop-filter: none;
  }

  body #hero-offer-panel .hs-funnel-title {
    max-width: calc(100% - 110px);
    font-size: 20px !important;
    text-align: left !important;
  }

  #hero-offer-panel .hs-funnel-sub { margin-bottom: 12px; text-align: left; }
  #hero-offer-panel .hs-fn-nav { margin-bottom: 6px; }
  #hero-offer-panel .hs-prog { margin-bottom: 12px; }
  #hero-offer-panel .hs-step-q { margin-bottom: 8px; }
  #hero-offer-panel .hs-svc-grid { gap: 6px; margin-bottom: 12px; }
  #hero-offer-panel .hs-svc-btn { padding: 7px 5px; min-height: 34px; font-size: 13px; }
  #hero-offer-panel .hs-fn-tel { display: none; }
  #hero-offer-panel #hs-st3 form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }

  #hero-offer-panel #hs-st3 form > :not(.hs-fgroup) { grid-column: 1 / -1; }
  #hero-offer-panel #hs-st3 .hs-fgroup,
  #hero-offer-panel #hs-st3 .hs-inp-row { margin-bottom: 2px !important; }

  #hero-offer-panel #hs-st3 .hs-dsgvo { margin: 6px 0 !important; }

  #hero-offer-panel #hs-st3 .hs-fn-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px !important;
  }

  #hero-offer-panel #hs-st3 .hs-btn-next {
    flex: 1;
    padding-inline: 8px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero-offer::before,
  #hero-offer-intro,
  #hero-offer-panel { transition: none; }
}

.hero-offer-progress,
.hero-offer-pattern-next { display: none; }

@media (min-width: 1025px) {
  #hero-offer {
    --form-ink: #064d29;
    --form-muted: #456457;
    --form-border: #d2e2d7;
    --form-fill: #fbfdfb;
    --form-selected: #e4f2e8;
    --form-action: #08773b;
    --form-action-ink: #fff;
    --form-frame: #fff;
    --form-line: #ddebe2;
  }


  #hero-offer::before {
    background: var(--form-frame);
  }

  #hero-offer #hero-offer-panel {
    padding: 24px 28px 12px;
    scrollbar-color: var(--form-border) transparent;
  }

  #hero-offer.hero-offer-manual .hero-offer-toggle {
    background: var(--form-fill) !important;
    border-color: var(--form-border);
    color: var(--form-ink) !important;
  }

  #hero-offer .hs-funnel-title {
    color: var(--form-ink) !important;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  #hero-offer .hs-funnel-sub {
    color: var(--form-muted);
    margin-bottom: 10px;
  }

  #hero-offer .hs-funnel :is(.hs-funnel-sub, .hs-dsgvo) a {
    color: var(--form-ink) !important;
  }

  #hero-offer .hero-offer-progress {
    display: block;
    margin-bottom: 5px;
    color: var(--form-muted);
    font: 600 12px/1.3 Manrope, system-ui, sans-serif;
  }

  #hero-offer .hero-offer-progress span { display: none; }
  #hero-offer .hs-funnel:has(#hs-st1.show) .hero-offer-progress span:nth-child(1),
  #hero-offer .hs-funnel:has(#hs-st2.show) .hero-offer-progress span:nth-child(2),
  #hero-offer .hs-funnel:has(#hs-st3.show) .hero-offer-progress span:nth-child(3) {
    display: inline;
  }

  #hero-offer .hs-prog-bar { background: var(--form-line); }
  #hero-offer .hs-prog-bar:is(.active, .done) {
    background: var(--form-action);
    opacity: 1;
  }

  #hero-offer .hs-step-q {
    color: var(--form-ink);
    font-size: 17px;
    font-weight: 700;
  }

  #hero-offer .hs-svc-btn {
    justify-content: flex-start;
    padding: 7px 10px;
    gap: 8px;
    border: 1px solid var(--form-border);
    border-radius: 6px;
    background: var(--form-fill);
    color: var(--form-ink);
    font-weight: 650;
  }

  #hero-offer .hs-svc-btn::before {
    content: "";
    inline-size: 13px;
    block-size: 13px;
    flex: 0 0 13px;
    border: 1px solid var(--form-muted);
    border-radius: 50%;
  }

  #hero-offer .hs-svc-btn:is(:hover, .sel) {
    background: var(--form-selected);
    border-color: var(--form-ink);
  }

  #hero-offer .hs-svc-btn.sel::before {
    border-color: var(--form-ink);
    background: var(--form-ink);
    box-shadow: inset 0 0 0 3px var(--form-selected);
  }



  #hero-offer .hero-offer-original-next { display: none; }
  #hero-offer .hero-offer-pattern-next { display: inline; }

  #hero-offer .hs-btn-next {
    min-height: 42px;
    background: var(--form-action) !important;
    color: var(--form-action-ink) !important;
    box-shadow: none !important;
  }

  #hero-offer .hs-btn-next:disabled {
    background: var(--form-line) !important;
    color: var(--form-muted) !important;
    opacity: 1;
  }

  #hero-offer .hs-btn-back,
  #hero-offer .hs-funnel :is(label, .hs-dsgvo, .hs-no-spam) {
    color: var(--form-ink) !important;
  }

  #hero-offer .hs-funnel :is(input, select) {
    background-color: var(--form-fill);
    border-color: var(--form-border);
    color: var(--form-ink);
  }

  #hero-offer .hs-funnel input::placeholder { color: var(--form-muted); }

  #hero-offer.hero-offer-manual .hs-hero2-cta::before {
    content: "";
    position: absolute;
    inset: auto 32px 92px;
    border-top: 1px solid var(--form-line);
  }

  #hero-offer.hero-offer-open :is(.hs-hero2-phone, .hero-offer-phone-label) {
    background: var(--form-frame);
    color: var(--form-ink);
  }
}

@property --hero-offer-cue-bg {
  syntax: "<color>";
  inherits: false;
  initial-value: #04361a;
}

@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  #hero-offer .hero-offer-toggle.hero-offer-cue {
    background: var(--hero-offer-cue-bg) !important;
    color: var(--hero-offer-cue-ink, #fff) !important;
    border-color: #04361a;
    animation: hero-offer-cue 1.2s cubic-bezier(0.45, 0, 0.55, 1) 3;
  }
}

@keyframes hero-offer-cue {
  0%, 100% { --hero-offer-cue-bg: #04361a; --hero-offer-cue-ink: #fff; }
  50% { --hero-offer-cue-bg: #fff; --hero-offer-cue-ink: #04361a; }
}
