/*!
 * windmanager – Kontaktfunnel
 * funnel.css · alle Regeln sind auf #wm-funnel gekapselt (Präfix .wmf-)
 */

@font-face {
  font-family: 'Cutyle Monoline Script';
  src: url('../fonts/CutyleMonolineScript-Regular.woff2') format('woff2');
  font-display: swap;
}

#wm-funnel, #wm-funnel *, #wm-funnel *::before, #wm-funnel *::after { box-sizing: border-box; }
#wm-funnel {
  font-family: 'Open Sans', sans-serif; color: #4a4a49; text-align: left;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
#wm-funnel h2, #wm-funnel p { margin: 0; }
#wm-funnel button { font-family: inherit; margin: 0; -webkit-appearance: none; appearance: none; text-shadow: none; box-shadow: none; }
#wm-funnel a { color: #4a4a49; text-decoration: none; box-shadow: rgba(79,139,201,.32) 0 -.5em 0 inset; transition: box-shadow .25s ease; }
#wm-funnel a:hover { color: #4a4a49; box-shadow: rgba(79,139,201,.32) 0 -2em 0 inset; }
#wm-funnel input::placeholder, #wm-funnel textarea::placeholder { color: #a3a3a3; opacity: 1; }
#wm-funnel button:focus { outline: none; }
#wm-funnel button:focus-visible,
#wm-funnel input:focus-visible,
#wm-funnel textarea:focus-visible,
#wm-funnel [role="checkbox"]:focus-visible { outline: 3px solid #83b3e0; outline-offset: 3px; }
#wm-funnel .no-tr { transition: none !important; }
#wm-funnel .wmf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Scrollbar */
#wm-funnel * { scrollbar-width: thin; scrollbar-color: #c9d5e4 transparent; }
#wm-funnel *::-webkit-scrollbar { width: 10px; height: 10px; }
#wm-funnel *::-webkit-scrollbar-track { background: transparent; }
#wm-funnel *::-webkit-scrollbar-thumb { background: #c9d5e4; border: 3px solid #fff; border-radius: 0; }
#wm-funnel *::-webkit-scrollbar-thumb:hover { background: #063796; }
#wm-funnel *::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

/* ---------- Bootstrap-Modal ---------- */
/* Hintergrund: Bootstrap-Backdrop, nur solange der Funnel offen ist */
body.wmf-open .modal-backdrop { background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: none; }
body.wmf-open .modal-backdrop.show { opacity: 1; animation: wmfFade .3s ease both; }

/* Ein-/Ausblenden übernimmt die eigene Choreografie */
#wm-funnel.modal.fade { transition: none; }
#wm-funnel.modal.fade .modal-dialog { transform: none; transition: none; }

/* Größe des Funnels: .modal-funnel am .modal-dialog */
#wm-funnel .modal-dialog.modal-funnel { max-width: none; width: auto; margin: 0; min-height: 100%; display: flex; align-items: center; justify-content: center; }

#wm-funnel .modal-content.wmf-dialog {
  position: relative; display: flex; flex-direction: row; overflow: hidden;
  width: min(1180px, calc(100vw - 64px)); height: min(820px, calc(100vh - 48px));
  border: 0; border-radius: 0; background: #fff; outline: none; pointer-events: auto; zoom: 1;
}
/* Notebook: etwas kompakter */
@media (max-width: 1499.98px), (max-height: 879.98px) {
  #wm-funnel .modal-content.wmf-dialog { zoom: .88; width: calc(min(1180px, calc(100vw - 64px)) / .88); height: calc(min(820px, calc(100vh - 48px)) / .88); }
}
@media (min-width: 760px) and (max-height: 759.98px) {
  #wm-funnel .modal-content.wmf-dialog { zoom: .84; width: calc(min(1180px, calc(100vw - 64px)) / .84); height: calc(min(820px, calc(100vh - 48px)) / .84); }
}
.wmf.is-open .wmf-dialog { animation: wmfStageIn .5s cubic-bezier(.2,.8,.2,1) both; }

/* ---------- Blaue Bühne (Desktop) ---------- */
.wmf-panel {
  position: relative; flex: 0 0 30%; min-width: 340px; display: flex; flex-direction: column;
  padding: 44px 56px 48px; overflow: hidden; background: #063796; color: #fff;
  transition: flex-basis .8s cubic-bezier(.65,0,.35,1), background-color .6s .45s ease;
}
.wmf.is-done .wmf-panel { flex-basis: 100%; background: #fff; }
.wmf-panel__stage { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }

.wmf-nums { display: grid; overflow: hidden; margin-left: -22px; }
.wmf-num {
  grid-area: 1 / 1; align-self: end; font-size: 210px; line-height: .86; font-weight: 800; letter-spacing: -.04em; color: #4f8bc9;
  transform: translateY(calc(100% + 40px)); transition: transform .75s cubic-bezier(.65,0,.35,1);
}
.wmf-num__kicker { margin: 0 0 18px 22px; font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: 0; text-transform: uppercase; white-space: pre-line; color: #fff; }
.wmf-num.is-script .wmf-num__n { padding-left: 40px; }

.wmf-ttls { position: relative; display: grid; margin-top: -62px; clip-path: inset(0 -300px 0 -300px); }
.wmf-ttl {
  grid-area: 1 / 1; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start;
  line-height: 1.02; font-weight: 700; text-transform: uppercase; white-space: pre-line; color: #fff;
  transform: translateY(calc(100% + 40px)); transition: transform .75s cubic-bezier(.65,0,.35,1) .04s;
}
.wmf-ttl > span { display: block; }
.wmf-ttl.is-single { padding-top: 36px; }
.wmf-ttl.is-script > span { padding: 22px 0 18px 4px; font-family: 'Cutyle Monoline Script', cursive; font-size: 68px; font-weight: 400; line-height: 1.35; text-transform: none; }

.wmf-num.is-past, .wmf-ttl.is-past, .wmf-mnum.is-past, .wmf-mttl.is-past { transform: translateY(calc(-100% - 320px)); }
.wmf-num.is-current, .wmf-ttl.is-current, .wmf-mnum.is-current, .wmf-mttl.is-current { transform: none; }
.wmf-num.is-current, .wmf-mnum.is-current { transition-delay: .08s; }
.wmf-ttl.is-current, .wmf-mttl.is-current { transition-delay: .16s; }

.wmf-panel__foot { display: flex; flex-direction: column; gap: 14px; transition: opacity .3s; }
.wmf.is-done .wmf-panel__foot { opacity: 0; }
.wmf-panel__count { font-size: 15px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.wmf-panel__count:empty { display: none; }
.wmf-progress { position: relative; height: 2px; background: #3a63b3; }
.wmf-progress__bar { position: absolute; left: 0; top: -1px; width: 0; height: 4px; background: #54b594; transition: width .8s cubic-bezier(.65,0,.35,1) .15s; }
.wmf-panel__hint { font-size: 15px; line-height: 1.5; color: #fff; }

/* Danke (Desktop) */
.wmf-done { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 48px 64px 120px; }
.wmf.is-done .wmf-done { display: flex; }
.wmf-done__inner { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.wmf-done__script {
  position: relative; z-index: 2; padding: 8px 6px 4px 4px; margin-bottom: calc(210px * -.6);
  font-family: 'Cutyle Monoline Script', cursive; font-size: 96px; line-height: 1.25; color: #063796;
  animation: wmfScriptIn .7s 1.15s cubic-bezier(.2,.8,.2,1) both;
}
.wmf-done__clip { overflow: hidden; }
#wm-funnel .wmf-done__big {
  margin: 0; font-size: 210px; line-height: .9; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; color: #91b9e3; outline: none;
  animation: wmfMaskUp .8s .75s cubic-bezier(.2,.8,.2,1) both;
}
.wmf-done__text { margin: 28px auto 0 !important; max-width: 440px; font-size: 18px; line-height: 1.6; color: #4a4a49; text-wrap: balance; animation: wmfRise .6s 1.35s cubic-bezier(.2,.8,.2,1) both; }
.wmf-done__action { margin-top: 28px; animation: wmfRise .6s 1.5s cubic-bezier(.2,.8,.2,1) both; }
.wmf-done__line { position: absolute; left: 56px; right: 56px; bottom: 52px; height: 2px; background: #e1e8f1; }
.wmf-done__run { position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: #54b594; transform-origin: 0 50%; animation: wmfLineRun 1.1s 1.7s cubic-bezier(.6,0,1,.6) both; }
.wmf-done__wall { position: absolute; right: -2px; top: -11px; width: 3px; height: 24px; background: #063796; transform-origin: 50% 100%; animation: wmfWall .5s 2.8s cubic-bezier(.3,1.6,.5,1) both; }
.wmf-done__pct { position: absolute; right: 0; bottom: 16px; font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: #54b594; font-variant-numeric: tabular-nums; transform-origin: 100% 100%; animation: wmfPop .45s 2.8s cubic-bezier(.34,1.56,.64,1) both; }

/* ---------- Mobiler Kopf ---------- */
.wmf-mhead { display: none; }
.wmf-mnums { display: grid; overflow: hidden; width: 58px; flex-shrink: 0; }
.wmf-mnum { grid-area: 1 / 1; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: #83b3e0; transform: translateY(calc(100% + 40px)); transition: transform .55s cubic-bezier(.65,0,.35,1); }
.wmf-mhead__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wmf-mhead__count { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #83b3e0; }
.wmf-mttls { display: grid; overflow: hidden; }
.wmf-mttl { grid-area: 1 / 1; font-size: 19px; line-height: 1.15; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; transform: translateY(calc(100% + 40px)); transition: transform .55s cubic-bezier(.65,0,.35,1) .04s; }
.wmf-mprogress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #3a63b3; }
.wmf-mprogress__bar { width: 0; height: 100%; background: #54b594; transition: width .7s cubic-bezier(.65,0,.35,1) .1s; }

/* ---------- Schließen ---------- */
#wm-funnel .wmf-close {
  position: absolute; top: 30px; right: 34px; z-index: 5; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
#wm-funnel .wmf-close:hover { transform: rotate(90deg); }
.wmf-close span { position: absolute; left: 0; top: 50%; width: 100%; height: 2px; border-radius: 3px; background: #a3a3a3; transform: translateY(-50%) rotate(45deg); }
.wmf-close span + span { transform: translateY(-50%) rotate(-45deg); }

/* ---------- Formularbühne ---------- */
.wmf-main { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.wmf-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.wmf-content { max-width: 840px; min-height: 100%; display: flex; flex-direction: column; padding: 34px 40px 32px 48px; }
.wmf.is-dense .wmf-content { padding: 26px 40px 22px 48px; }

.wmf-intro, .wmf-step, .wmf-donem { display: none; }
.wmf.is-intro .wmf-intro { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 28px; animation: wmfRise .6s .25s cubic-bezier(.2,.8,.2,1) both; }
.wmf.is-step .wmf-step { display: block; }
#wm-funnel .wmf-intro__title { font-size: 58px; line-height: 1.02; font-weight: 700; text-transform: uppercase; color: #063796; text-wrap: balance; }
.wmf-intro__text { max-width: 560px; font-size: 18px; line-height: 1.7; color: #4a4a49; text-wrap: pretty; }
.wmf-intro__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }

/* Buttons */
#wm-funnel .wmf-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 40px; border: none; border-radius: 30px;
  background: #063796; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  transition: gap .25s cubic-bezier(.2,.8,.2,1);
}
#wm-funnel .wmf-btn:hover { gap: 18px; color: #fff; background: #063796; }
#wm-funnel .wmf-btn[disabled] { cursor: default; }
#wm-funnel .wmf-btn--lg { padding: 12px 40px; font-size: 17px; letter-spacing: 0; }
.wmf-chev { display: block; flex-shrink: 0; }
.wmf-spin { display: none; width: 14px; height: 14px; border: 2px solid #83b3e0; border-top-color: #fff; border-radius: 50%; animation: wmfSpin .8s linear infinite; }
.wmf-next.is-loading .wmf-spin { display: block; }
.wmf-next.is-loading .wmf-chev { display: none; }

/* Bisherige Angaben */
.wmf-hist { margin-bottom: 52px; }
.wmf.is-dense .wmf-hist { margin-bottom: 32px; }
#wm-funnel .wmf-hist__toggle {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 36px); padding: 10px 0; border: 0; border-bottom: 1px solid #d6e2f0; border-radius: 0;
  background: transparent; color: #063796; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
}
.wmf-hist__toggle > span { flex: 1; }
.wmf-hist__toggle svg { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.wmf-hist.is-open .wmf-hist__toggle svg { transform: rotate(180deg); }
.wmf-hist__wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1); }
.wmf-hist.is-open .wmf-hist__wrap { grid-template-rows: 1fr; }
.wmf-hist__clip { overflow: hidden; min-height: 0; }
#wm-funnel .wmf-row {
  display: grid; grid-template-columns: minmax(150px,1fr) minmax(0,1.2fr) 20px; align-items: center; gap: 20px; width: 100%;
  padding: 11px 0; border: 0; border-bottom: 1px solid #d6e2f0; border-radius: 0; background: transparent; text-align: left; cursor: pointer;
  transition: padding .25s cubic-bezier(.2,.8,.2,1);
}
#wm-funnel .wmf-row:hover { padding-left: 6px; }
.wmf-row__lbl { font-size: 14px; line-height: 1.35; color: #706f6f; }
.wmf-row__val { font-size: 15px; font-weight: 700; color: #063796; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.wmf-row svg { color: #54b594; }

/* Frage */
#wm-funnel .wmf-q { font-size: 42px; line-height: 1.06; font-weight: 700; text-transform: uppercase; color: #063796; text-wrap: balance; outline: none; transform-origin: 0 0; }
#wm-funnel .wmf-step:not(.has-answers) .wmf-q { margin-top: 90px; padding-right: 36px; }
#wm-funnel.is-dense .wmf-step:not(.has-answers) .wmf-q { margin-top: 70px; }
.wmf-sub { margin-top: 14px !important; font-size: 16px; line-height: 1.65; color: #706f6f; }

/* Felder */
.wmf-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 28px; margin-top: 36px; }
.wmf.is-dense .wmf-fields { margin-top: 24px; }
.wmf-field { grid-column: 1 / -1; display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .42s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
.wmf-field--half { grid-column: span 1; align-self: end; }
.wmf-field.is-hidden { grid-template-rows: 0fr; opacity: 0; }
.wmf-field__clip { overflow: hidden; min-height: 0; margin: 0 -8px; }
.wmf-field__in { padding: 12px 8px 26px; }
.wmf.is-dense .wmf-field__in { padding-bottom: 16px; }

.wmf-because { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #488ac8; }
.wmf-because > span { width: 18px; height: 1px; background: #488ac8; }
#wm-funnel .wmf-label { display: block; margin: 0 0 14px; font-size: 18px; line-height: 1.35; font-weight: 700; color: #4a4a49; text-wrap: pretty; }
.wmf-label__req { margin-left: 4px; color: #063796; font-weight: 700; }
.wmf-label__hint { margin-left: 6px; font-size: 14px; font-weight: 400; color: #706f6f; }
.wmf-err { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 700; color: #e74a4a; animation: wmfRise .25s ease both; }
.wmf-err::before { content: ''; width: 14px; height: 2px; background: #e74a4a; }
.wmf-err:empty { display: none; }

/* Text / E-Mail / Telefon */
.wmf-input { position: relative; }
#wm-funnel .wmf-input__el {
  display: block; width: 100%; height: 62px; margin: 0; padding: 0 50px 0 18px;
  border: 2px solid #063796 !important; border-radius: 0; background: #fff; box-shadow: none;
  font-family: inherit; font-size: 19px; color: #4a4a49; outline: none;
}
.wmf-input__ok { position: absolute; right: 18px; top: 21px; color: #54b594; transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
.wmf-input.is-valid .wmf-input__ok { transform: scale(1); }
#wm-funnel .wmf-textarea {
  display: block; width: 100%; margin: 0; padding: 16px 18px; border: 2px solid #063796 !important; border-radius: 0; background: #fff; box-shadow: none;
  font-family: inherit; font-size: 18px; line-height: 1.6; color: #4a4a49; outline: none; resize: vertical;
}

/* Zahl */
.wmf-stepper { display: flex; align-items: stretch; max-width: 340px; min-width: 0; }
#wm-funnel .wmf-stepper__btn {
  width: 62px; height: 62px; flex-shrink: 0; padding: 0; border: 2px solid #063796; border-radius: 0; background: #fff; color: #063796;
  font-size: 26px; font-weight: 700; line-height: 1; cursor: pointer;
}
#wm-funnel .wmf-stepper__btn--inc { background: #063796; color: #fff; }
.wmf-stepper__box { position: relative; z-index: 1; flex: 1; min-width: 0; margin: 0 -2px; border: 2px solid #063796; background: #fff; overflow: hidden; }
.wmf-stepper__box:focus-within { outline: 3px solid #83b3e0; outline-offset: 3px; overflow: visible; }
#wm-funnel .wmf-stepper__el {
  display: block; width: 100%; height: 58px; margin: 0; padding: 0 4px; border: 0 !important; border-radius: 0; background: transparent; box-shadow: none;
  font-family: inherit; font-size: 28px; font-weight: 700; color: #063796; text-align: center; font-variant-numeric: tabular-nums; outline: none !important;
}
#wm-funnel .wmf-stepper__el.is-bump { animation: wmfBump .26s cubic-bezier(.2,.8,.2,1); }

#wm-funnel .has-error .wmf-input__el,
#wm-funnel .has-error .wmf-textarea { border-color: #e74a4a !important; }
#wm-funnel .has-error .wmf-stepper__box { border-color: #e74a4a; }

/* Einfach- / Mehrfachauswahl / Kacheln */
.wmf-choices { display: grid; grid-template-columns: minmax(0,1fr); column-gap: 32px; border-top: 1px solid #d6e2f0; }
.wmf-choices--2col { grid-template-columns: repeat(2, minmax(0,1fr)); }
#wm-funnel .wmf-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 60px; padding: 12px 14px;
  border: 0; border-bottom: 1px solid #d6e2f0; border-radius: 0; background: transparent; text-align: left; cursor: pointer;
}
#wm-funnel .wmf-choices--desc .wmf-opt { align-items: flex-start; min-height: 96px; padding: 20px 14px; }
.wmf-opt__fill { position: absolute; inset: 0; background: #eef4fb; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .32s cubic-bezier(.65,0,.35,1); }
.wmf-opt.is-on .wmf-opt__fill { transform: scaleX(1); transform-origin: 0 50%; }
.wmf-opt__mark {
  position: relative; width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 2px solid #063796; background: #fff; color: #fff; transition: background .2s, border-color .2s;
}
.wmf-opt__mark--radio { border-radius: 50%; }
.wmf-choices--desc .wmf-opt__mark { margin-top: 2px; }
.has-error .wmf-opt__mark { border-color: #e74a4a; }
.wmf-opt.is-on .wmf-opt__mark { border-color: #54b594; background: #54b594; transition-delay: .08s; }
.wmf-opt__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.wmf-opt__dot, .wmf-opt__mark svg { transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1) .1s; }
.wmf-opt.is-on .wmf-opt__dot, .wmf-opt.is-on .wmf-opt__mark svg { transform: scale(1); }
.wmf-opt__txt { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wmf-opt__lbl { font-size: 17px; line-height: 1.3; font-weight: 600; color: #4a4a49; transition: color .2s; }
.wmf-opt__lbl.is-nowrap { white-space: nowrap; }
.wmf-choices--desc .wmf-opt__lbl { font-size: 20px; font-weight: 700; text-transform: uppercase; }
.wmf-opt.is-on .wmf-opt__lbl { color: #063796; }
.wmf-opt__desc { font-size: 15px; line-height: 1.5; color: #706f6f; }
.wmf-count { margin-top: 12px; font-size: 14px; color: #706f6f; font-variant-numeric: tabular-nums; }

/* Einzelne Checkbox */
.wmf-check {
  position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 18px 16px;
  border-top: 1px solid #d6e2f0; border-bottom: 1px solid #d6e2f0; font-size: 15px; line-height: 1.65; cursor: pointer;
}
.wmf-check__fill { position: absolute; inset: 0; background: #f3f7fc; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .32s cubic-bezier(.65,0,.35,1); }
.wmf-check.is-on .wmf-check__fill { transform: scaleX(1); transform-origin: 0 50%; }
.wmf-check__box { position: relative; width: 24px; height: 24px; margin-top: 1px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 2px solid #063796; background: #fff; color: #fff; transition: background .2s, border-color .2s; }
.has-error .wmf-check__box { border-color: #e74a4a; }
.wmf-check.is-on .wmf-check__box { border-color: #54b594; background: #54b594; }
.wmf-check__box svg { transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.wmf-check.is-on .wmf-check__box svg { transform: scale(1); }
.wmf-check__txt { position: relative; color: #4a4a49; }

/* Hinweistext */
.wmf-note { font-size: 13px; line-height: 1.65; color: #706f6f; text-wrap: pretty; }
.wmf-req { margin-top: 4px !important; font-size: 13px; line-height: 1.5; color: #706f6f; }
.wmf-req > span { color: #063796; font-weight: 700; }
.wmf-req[hidden] { display: none !important; }

/* Fußleiste */
#wm-funnel .wmf-foot.modal-footer { display: none; flex-shrink: 0; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; padding: 0; border-top: 1px solid #ebebeb; border-radius: 0; }
#wm-funnel .wmf-foot.modal-footer > * { margin: 0; }
#wm-funnel.is-step .wmf-foot.modal-footer { display: block; }
.wmf-foot__in { width: 100%; max-width: 840px; padding: 16px 40px 16px 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wmf-foot__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
#wm-funnel .wmf-back {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border: 0; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #706f6f; transition: gap .25s cubic-bezier(.2,.8,.2,1);
}
#wm-funnel .wmf-back:hover { gap: 14px; }
.wmf-delta { font-size: 14px; font-weight: 600; white-space: nowrap; color: #488ac8; }
.wmf-delta:empty { display: none; }
.wmf-delta.is-in { animation: wmfRise .3s ease both; }
.wmf-suberr { max-width: 320px; font-size: 14px; line-height: 1.5; font-weight: 600; color: #e74a4a; }

/* Danke (mobil) */
.wmf.is-done .wmf-donem { flex: 1; align-items: center; justify-content: center; }
.wmf-donem .wmf-done__script { font-size: 56px; margin-bottom: calc(112px * -.6); }
#wm-funnel .wmf-donem .wmf-done__big { font-size: 112px; }

/* ---------- Notebook / Tablet ---------- */
@media (max-width: 1099.98px) {
  .wmf-num { font-size: 160px; }
  .wmf-num__kicker { font-size: 24px; }
  .wmf-ttls { margin-top: -44px; }
  .wmf-ttl.is-single { padding-top: 26px; }
  .wmf-ttl.is-script > span { font-size: 54px; }
  .wmf-content { padding: 28px 32px 28px 40px; }
  .wmf.is-dense .wmf-content { padding: 22px 32px 20px 40px; }
  .wmf-foot__in { padding: 14px 32px 14px 40px; }
  #wm-funnel .wmf-intro__title { font-size: 44px; }
  #wm-funnel .wmf-q { font-size: 34px; }
  #wm-funnel .wmf-done__big { font-size: 150px; }
  .wmf-done__script { font-size: 72px; margin-bottom: calc(150px * -.6); }
}

/* ---------- Mobil ---------- */
@media (max-width: 759.98px) {
  #wm-funnel .modal-content.wmf-dialog { flex-direction: column; zoom: .9; width: calc(100vw / .9); height: calc(100vh / .9); }
  .wmf-panel { display: none; }
  .wmf-mhead { position: relative; flex-shrink: 0; height: 88px; display: flex; align-items: center; gap: 14px; padding: 0 64px 0 20px; overflow: hidden; background: #063796; color: #fff; }
  #wm-funnel .wmf-close { top: 29px; right: 20px; }
  .wmf-close span { background: #fff; }
  .wmf-content, .wmf.is-dense .wmf-content { max-width: 100%; padding: 24px 20px 32px; }
  .wmf-foot__in { max-width: 100%; padding: 14px 20px; }
  #wm-funnel .wmf-intro__title { font-size: 32px; }
  #wm-funnel .wmf-q { font-size: 27px; }
  #wm-funnel .wmf-step:not(.has-answers) .wmf-q, #wm-funnel.is-dense .wmf-step:not(.has-answers) .wmf-q { margin-top: 66px; padding-right: 0; }
  .wmf-hist, .wmf.is-dense .wmf-hist { margin-bottom: 28px; }
  #wm-funnel .wmf-hist__toggle { width: 100%; }
  #wm-funnel .wmf-row { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) 20px; gap: 12px; }
  .wmf-fields, .wmf.is-dense .wmf-fields { margin-top: 24px; }
  .wmf-field--half { grid-column: 1 / -1; align-self: stretch; }
  .wmf-choices--2col { grid-template-columns: minmax(0,1fr); }
  .wmf-choices--desc .wmf-opt__lbl { font-size: 18px; }
  .wmf-opt__lbl.is-nowrap { white-space: normal; }
  .wmf.is-done .wmf-donem { display: flex; }
}

/* ---------- Animationen ---------- */
@keyframes wmfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wmfStageIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes wmfRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wmfBump { from { transform: translateY(5px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes wmfSpin { to { transform: rotate(360deg); } }
@keyframes wmfLineRun { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wmfWall { 0% { transform: none; } 30% { transform: rotate(14deg); } 60% { transform: rotate(-6deg); } 100% { transform: none; } }
@keyframes wmfPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes wmfMaskUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes wmfScriptIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  #wm-funnel *, #wm-funnel *::before, #wm-funnel *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}